summaryrefslogtreecommitdiff
path: root/test/test_delegate.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-10-04 15:41:13 -0700
committerJeremy Evans <code@jeremyevans.net>2020-01-02 18:40:45 -0800
commitff96565686c05919bcae3ea77831879e95f67457 (patch)
treee04eaa5afdaaa942ccfef86648ebfb8a632e8c33 /test/test_delegate.rb
parentbeae6cbf0fd8b6619e5212552de98022d4c4d4d4 (diff)
Update tests for full keyword argument separation
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2794
Diffstat (limited to 'test/test_delegate.rb')
-rw-r--r--test/test_delegate.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/test_delegate.rb b/test/test_delegate.rb
index 02a3433..303cd16 100644
--- a/test/test_delegate.rb
+++ b/test/test_delegate.rb
@@ -190,9 +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(/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.foo({:a=>1}))
assert_equal([{:a=>1}], d.bar({:a=>1}))
end