summaryrefslogtreecommitdiff
path: root/test/test_delegate.rb
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2019-12-23 02:34:16 -0500
committerMarc-Andre Lafortune <github@marc-andre.ca>2019-12-23 16:47:33 -0500
commit819b604037c317d2b53a1aaca67aef25da2d5ec9 (patch)
tree0dfc97bef8bdac44091e2c627325ed61fd61a16c /test/test_delegate.rb
parentdf6f5c44af1f261fa940ec3954468be8b820450e (diff)
Reword keyword arguments warning messages to convey these are deprecation warnings
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 a8e938c..02a3433 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 keyword parameters.*The called method `foo'/m) do
+ assert_warn(/Using the last argument as keyword parameters is deprecated.*The called method `foo'/m) do
assert_equal([[], {:a=>1}], d.foo({:a=>1}))
end
assert_equal([{:a=>1}], d.bar({:a=>1}))