ruby-changes:58133
From: Nobuyoshi <ko1@a...>
Date: Sat, 5 Oct 2019 11:33:49 +0900 (JST)
Subject: [ruby-changes:58133] 3e3cc0885a (master): Now keyword parameter warnings are suppressed by 871005bdd204
https://git.ruby-lang.org/ruby.git/commit/?id=3e3cc0885a From 3e3cc0885a9100e9d1bfdb77e136416ec803f4ca Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 5 Oct 2019 11:28:53 +0900 Subject: 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. diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb index 38303cd..1590c04 100644 --- a/test/rubygems/test_require.rb +++ b/test/rubygems/test_require.rb @@ -524,11 +524,11 @@ class TestGemRequire < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_require.rb#L524 _, 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/