зеркало из https://github.com/github/ruby.git
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:
Родитель
7044cea301
Коммит
ee0b5fbd53
|
@ -68,7 +68,7 @@ class TestWEBrickHTTPAuth < Test::Unit::TestCase
|
||||||
/ERROR WEBrick::HTTPStatus::Unauthorized/
|
/ERROR WEBrick::HTTPStatus::Unauthorized/
|
||||||
]
|
]
|
||||||
pats.each {|pat|
|
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 }
|
log.reject! {|line| pat =~ line }
|
||||||
}
|
}
|
||||||
assert_equal([], log)
|
assert_equal([], log)
|
||||||
|
@ -162,7 +162,7 @@ class TestWEBrickHTTPAuth < Test::Unit::TestCase
|
||||||
/ERROR Digest WEBrick's realm: webrick: digest unmatch\./
|
/ERROR Digest WEBrick's realm: webrick: digest unmatch\./
|
||||||
]
|
]
|
||||||
pats.each {|pat|
|
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 }
|
log.reject! {|line| pat =~ line }
|
||||||
}
|
}
|
||||||
assert_equal([], log)
|
assert_equal([], log)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче