From d1683b59b07bddd337697bf0a8af8472844c6d41 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 4 Apr 2016 15:08:20 +0000 Subject: 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 --- test/openssl/test_ssl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index b3f5661e5c..b539f2498d 100644 --- a/test/openssl/test_ssl.rb +++ b/test/openssl/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 -- cgit v1.2.3