diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-09 11:51:06 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-09 11:51:06 +0000 |
commit | 070c310e87d04865da1b4f217432e22cfae5e380 (patch) | |
tree | d11d9ef6c67b447bc886182b9c02e38aa70a3a00 /test/net/http/test_https.rb | |
parent | 9b559f194c9960e66011b8f40d428fe36cb302be (diff) |
* test/webrick: Store log in an array.
* test/net/http: Ditto.
* test/open-uri: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/http/test_https.rb')
-rw-r--r-- | test/net/http/test_https.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb index 89845c584a..bff2b4afe6 100644 --- a/test/net/http/test_https.rb +++ b/test/net/http/test_https.rb @@ -117,7 +117,10 @@ class TestNetHTTPS < Test::Unit::TestCase end } assert_match(/certificate verify failed/, ex.message) - @log_pattern = /ERROR OpenSSL::SSL::SSLError:/ + @log_tester = lambda {|log| + assert_equal(1, log.length) + assert_match(/ERROR OpenSSL::SSL::SSLError:/, log[0]) + } end def test_identity_verify_failure |