1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Ignore warnings about ambiguous first argument of regexp with assert match.

This commit is contained in:
Hiroshi SHIBATA 2019-06-01 14:44:24 +03:00
parent f630359d9b
commit 9eecd7a2fd
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
4 changed files with 16 additions and 16 deletions

View file

@ -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