aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/testing/method_call_assertions_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/testing/method_call_assertions_test.rb')
-rw-r--r--activesupport/test/testing/method_call_assertions_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/activesupport/test/testing/method_call_assertions_test.rb b/activesupport/test/testing/method_call_assertions_test.rb
index b327492b3b..a9908aea0d 100644
--- a/activesupport/test/testing/method_call_assertions_test.rb
+++ b/activesupport/test/testing/method_call_assertions_test.rb
@@ -73,6 +73,13 @@ class MethodCallAssertionsTest < ActiveSupport::TestCase
end
end
+ def test_assert_called_with_multiple_expected_arguments
+ assert_called_with(@object, :<<, [ [ 1 ], [ 2 ] ]) do
+ @object << 1
+ @object << 2
+ end
+ end
+
def test_assert_not_called
assert_not_called(@object, :decrement) do
@object.increment