mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress assert_match warnings.
This commit is contained in:
parent
d4a86e407e
commit
2a490d5660
1 changed files with 2 additions and 2 deletions
|
@ -524,11 +524,11 @@ class TestGemRequire < Gem::TestCase
|
|||
_, err = capture_subprocess_io do
|
||||
system(@@ruby, "-w", "-rpp", "--disable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
|
||||
end
|
||||
assert_match /main.rb:1: warning: The last argument is used as the keyword parameter/, err
|
||||
assert_match(/main.rb:1: warning: The last argument is used as the keyword parameter/, err)
|
||||
_, err = capture_subprocess_io do
|
||||
system(@@ruby, "-w", "-rpp", "--enable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
|
||||
end
|
||||
assert_match /main.rb:1: warning: The last argument is used as the keyword parameter/, err
|
||||
assert_match(/main.rb:1: warning: The last argument is used as the keyword parameter/, err)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue