From 3e3cc0885a9100e9d1bfdb77e136416ec803f4ca Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 5 Oct 2019 11:28:53 +0900 Subject: [PATCH] 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. --- test/rubygems/test_require.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb index 38303cd44f..1590c04d21 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_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