aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@ruby-lang.org>2016-04-04 15:08:20 +0000
committerKazuki Yamaguchi <k@rhe.jp>2016-05-31 11:31:27 +0900
commit9ef57cc80a4bbe4a9952b7f61029b397711ccda6 (patch)
tree343fba9516d17a957603672afab9312229cfcc37 /test
parentbd6a4954382b7b742575d5688bd9b93a597bcc24 (diff)
downloadruby-openssl-9ef57cc80a4bbe4a9952b7f61029b397711ccda6.tar.gz
test_get_ephemeral_key: use assert_instance_of
* test/openssl/test_ssl.rb (test_get_ephemeral_key): should use assert_instance_of instead of comparison of classes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/test_ssl.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_ssl.rb b/test/test_ssl.rb
index db7ce33e..5dcca146 100644
--- a/test/test_ssl.rb
+++ b/test/test_ssl.rb
@@ -1183,7 +1183,7 @@ end
ctx.ciphers = cipher
server_connect(port, ctx) do |ssl|
if ephemeral
- assert_equal(ephemeral, ssl.tmp_key.class)
+ assert_instance_of(ephemeral, ssl.tmp_key)
else
assert_nil(ssl.tmp_key)
end