diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-09 08:17:51 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-09 08:17:51 +0000 |
commit | e54c30c05eb16897bc1d44b3bec06083ef1ae779 (patch) | |
tree | 209ddf5b023c52bedd3725ba5450d417bfcd1c97 | |
parent | 050d7453b71029816091c302b2d389811b722aaf (diff) | |
download | ruby-e54c30c05eb16897bc1d44b3bec06083ef1ae779.tar.gz |
* test/net/http/test_https.rb (test_identity_verify_failure): follows
the SSL hostname check error message of openssl.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/net/http/test_https.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Thu Sep 9 17:15:15 2010 NAKAMURA, Hiroshi <nahi@ruby-lang.org> + + * test/net/http/test_https.rb (test_identity_verify_failure): follows + the SSL hostname check error message of openssl. + Thu Sep 9 10:44:46 2010 NARUSE, Yui <naruse@ruby-lang.org> * test/ruby/test_env.rb (test_aset): OpenBSD acts like NetBSD in diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb index adb50c58fb..f66f99ed41 100644 --- a/test/net/http/test_https.rb +++ b/test/net/http/test_https.rb @@ -92,6 +92,6 @@ class TestNetHTTPS < Test::Unit::TestCase ex = assert_raise(OpenSSL::SSL::SSLError){ http.request_get("/") {|res| } } - assert_match(/hostname was not match/, ex.message) + assert_match(/hostname does not match/, ex.message) end end if defined?(OpenSSL) |