summaryrefslogtreecommitdiff
path: root/test/rubygems
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-05 11:28:53 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-05 11:30:05 +0900
commit3e3cc0885a9100e9d1bfdb77e136416ec803f4ca (patch)
tree3e42dfbc851f62036c9e78e7b8ed3bb331965b25 /test/rubygems
parent212da9a6aec5da26f97b8312b7e8fd3d9b1eef47 (diff)
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.
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/test_require.rb4
1 files 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