mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
9b559f194c
commit
070c310e87
9 changed files with 45 additions and 33 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue