diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-07-10 23:24:47 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-07-10 23:45:42 +0200 |
commit | 46b92c4d1274f7438b4e5e65bacc017693c3ffed (patch) | |
tree | eca778b06b1108295e9f420e9ba013de7d7afed4 /activesupport/test/testing | |
parent | 3c5bd78ddbeefe7b1d1b513d9057bd9358d5a5da (diff) | |
download | rails-46b92c4d1274f7438b4e5e65bacc017693c3ffed.tar.gz rails-46b92c4d1274f7438b4e5e65bacc017693c3ffed.tar.bz2 rails-46b92c4d1274f7438b4e5e65bacc017693c3ffed.zip |
Add multiple expected calls to assert_called_with.
Diffstat (limited to 'activesupport/test/testing')
-rw-r--r-- | activesupport/test/testing/method_call_assertions_test.rb | 7 |
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 |