aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorRonak Jangir <ronakjangir47@gmail.com>2015-08-15 14:14:55 +0530
committerRonak Jangir <ronakjangir47@gmail.com>2015-08-17 20:28:00 +0530
commite49c2cd743eaf3fbaa1215e4922b2a59f8e3b5f8 (patch)
tree185e46de5b59a246fe00e26b06ad869d97ccb669 /activesupport/test
parenta293812bffbc6e634e1a6e6794e9dec537d522a3 (diff)
downloadrails-e49c2cd743eaf3fbaa1215e4922b2a59f8e3b5f8.tar.gz
rails-e49c2cd743eaf3fbaa1215e4922b2a59f8e3b5f8.tar.bz2
rails-e49c2cd743eaf3fbaa1215e4922b2a59f8e3b5f8.zip
Replacing lambda with proc getting argument error because of it.
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/testing/method_call_assertions_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/testing/method_call_assertions_test.rb b/activesupport/test/testing/method_call_assertions_test.rb
index 652cbda8da..2939cf0233 100644
--- a/activesupport/test/testing/method_call_assertions_test.rb
+++ b/activesupport/test/testing/method_call_assertions_test.rb
@@ -27,6 +27,12 @@ class MethodCallAssertionsTest < ActiveSupport::TestCase
end
end
+ def test_assert_called_method_with_arguments
+ assert_called(@object, :<<) do
+ @object << 2
+ end
+ end
+
def test_assert_called_failure
error = assert_raises(Minitest::Assertion) do
assert_called(@object, :increment) do