diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-09-26 18:24:20 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-09-26 18:24:20 +0900 |
commit | 2a490d5660ac869f8f2bbcec4887b1dc2950643f (patch) | |
tree | 6988aa51b050621aed2c970d8f668fdcc735ea76 | |
parent | d4a86e407ec2057c2c7ad757aa76dad757f34c3a (diff) | |
download | ruby-2a490d5660ac869f8f2bbcec4887b1dc2950643f.tar.gz |
Suppress assert_match warnings.
-rw-r--r-- | test/rubygems/test_require.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb index 148dfa1752..5ca51fffa5 100644 --- a/test/rubygems/test_require.rb +++ b/test/rubygems/test_require.rb @@ -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 |