Now keyword parameter warnings are suppressed by 871005bdd204

This reverts commits:

* 2a490d5660ac869f8f2bbcec4887b1dc2950643f
  Suppress assert_match warnings.

* d4a86e407ec2057c2c7ad757aa76dad757f34c3a
  Assert warnings message for the last argument is keyword parameter.
This commit is contained in:
Nobuyoshi Nakada 2019-10-05 11:28:53 +09:00
parent 212da9a6ae
commit 3e3cc0885a
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60

View File

@ -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_equal "{:x=>1}\n{:y=>2}\n", 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_equal "{:x=>1}\n{:y=>2}\n", err
end
end
end