summaryrefslogtreecommitdiff
path: root/test/webrick
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-09 01:17:14 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-09 01:17:14 +0000
commitee0b5fbd53bc320f7278cdc3edf632d0e39d5c31 (patch)
treeefdf1a8122de4f67000316f2c653b34cce8a4991 /test/webrick
parent7044cea301ddf80375bff2bab6021d28392bf94a (diff)
Fix previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/webrick')
-rw-r--r--test/webrick/test_httpauth.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/webrick/test_httpauth.rb b/test/webrick/test_httpauth.rb
index 0d5288e..bf47656 100644
--- a/test/webrick/test_httpauth.rb
+++ b/test/webrick/test_httpauth.rb
@@ -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)