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:
parent
f630359d9b
commit
9eecd7a2fd
4 changed files with 16 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue