From ee0b5fbd53bc320f7278cdc3edf632d0e39d5c31 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 9 Nov 2014 01:17:14 +0000 Subject: Fix previous change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/webrick/test_httpauth.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/webrick') diff --git a/test/webrick/test_httpauth.rb b/test/webrick/test_httpauth.rb index 0d5288e2a2..bf47656a20 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) -- cgit v1.2.3