summaryrefslogtreecommitdiff
path: root/test/webrick
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-06-01 14:44:24 +0300
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-06-01 14:44:24 +0300
commit9eecd7a2fd0b67aa13450887a1fee9a6638b9e4e (patch)
treed936591f6d6bc2af27fdb25c37f11ef9bad67fe4 /test/webrick
parentf630359d9b60e298e472a62f0b6ff17f17ef5c69 (diff)
Ignore warnings about ambiguous first argument of regexp with assert match.
Diffstat (limited to 'test/webrick')
-rw-r--r--test/webrick/test_httpresponse.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/webrick/test_httpresponse.rb b/test/webrick/test_httpresponse.rb
index 75861caf8f..468c60582d 100644
--- a/test/webrick/test_httpresponse.rb
+++ b/test/webrick/test_httpresponse.rb
@@ -68,7 +68,7 @@ module WEBrick
io.rewind
res = Net::HTTPResponse.read_new(Net::BufferedIO.new(io))
assert_equal '300', res.code
- refute_match /<img/, io.string
+ refute_match(/<img/, io.string)
end
def test_304_does_not_log_warning