ruby-changes:57917
From: Hiroshi <ko1@a...>
Date: Thu, 26 Sep 2019 18:24:45 +0900 (JST)
Subject: [ruby-changes:57917] 2a490d5660 (master): Suppress assert_match warnings.
https://git.ruby-lang.org/ruby.git/commit/?id=2a490d5660 From 2a490d5660ac869f8f2bbcec4887b1dc2950643f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Thu, 26 Sep 2019 18:24:20 +0900 Subject: Suppress assert_match warnings. diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb index 148dfa1..5ca51ff 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_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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/