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:
parent
7044cea301
commit
ee0b5fbd53
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue