ruby-changes:42413
From: nobu <ko1@a...>
Date: Mon, 4 Apr 2016 23:11:42 +0900 (JST)
Subject: [ruby-changes:42413] nobu:r54487 (trunk): test_get_ephemeral_key: use assert_instance_of
nobu 2016-04-05 00:08:20 +0900 (Tue, 05 Apr 2016) New Revision: 54487 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54487 Log: 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. Modified files: trunk/test/openssl/test_ssl.rb Index: test/openssl/test_ssl.rb =================================================================== --- test/openssl/test_ssl.rb (revision 54486) +++ test/openssl/test_ssl.rb (revision 54487) @@ -1183,7 +1183,7 @@ end https://github.com/ruby/ruby/blob/trunk/test/openssl/test_ssl.rb#L1183 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/