1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix previous change.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2014-11-09 01:17:14 +00:00
parent 7044cea301
commit ee0b5fbd53

View file

@ -68,7 +68,7 @@ class TestWEBrickHTTPAuth < Test::Unit::TestCase
/ERROR WEBrick::HTTPStatus::Unauthorized/
]
pats.each {|pat|
assert_operator(log, :grep, pat)
assert(!log.grep(pat).empty?, "webrick log doesn't have expected error: #{pat.inspect}")
log.reject! {|line| pat =~ line }
}
assert_equal([], log)
@ -162,7 +162,7 @@ class TestWEBrickHTTPAuth < Test::Unit::TestCase
/ERROR Digest WEBrick's realm: webrick: digest unmatch\./
]
pats.each {|pat|
assert_operator(log, :grep, pat)
assert(!log.grep(pat).empty?, "webrick log doesn't have expected error: #{pat.inspect}")
log.reject! {|line| pat =~ line }
}
assert_equal([], log)