summaryrefslogtreecommitdiff
path: root/test/test_delegate.rb
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-12-20 19:41:15 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-12-20 19:41:15 +0900
commitf7aee584987e24768670e96b1455ed1193f91ef2 (patch)
tree6f6465e61af7bc2581abdaad09ac8e5786975d6a /test/test_delegate.rb
parent2b2030f265e4ec0782de9c8dd9f8828a1a0af1b5 (diff)
vm_args.c: rephrase the warning message of keyword argument separation
(old) test.rb:4: warning: The last argument is used as the keyword parameter test.rb:1: warning: for `foo' defined here; maybe ** should be added to the call? (new) test.rb:4: warning: The last argument is used as keyword parameters; maybe ** should be added to the call test.rb:1: warning: The called method `foo' is defined here
Diffstat (limited to 'test/test_delegate.rb')
-rw-r--r--test/test_delegate.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_delegate.rb b/test/test_delegate.rb
index 7f6e7c1326..a8e938c08e 100644
--- a/test/test_delegate.rb
+++ b/test/test_delegate.rb
@@ -190,7 +190,7 @@ class TestDelegateClass < Test::Unit::TestCase
assert_equal([], d.bar)
assert_equal([[], {:a=>1}], d.foo(:a=>1))
assert_equal([{:a=>1}], d.bar(:a=>1))
- assert_warn(/The last argument is used as the keyword parameter.* for `foo'/m) do
+ assert_warn(/The last argument is used as keyword parameters.*The called method `foo'/m) do
assert_equal([[], {:a=>1}], d.foo({:a=>1}))
end
assert_equal([{:a=>1}], d.bar({:a=>1}))