From e49c2cd743eaf3fbaa1215e4922b2a59f8e3b5f8 Mon Sep 17 00:00:00 2001 From: Ronak Jangir Date: Sat, 15 Aug 2015 14:14:55 +0530 Subject: Replacing lambda with proc getting argument error because of it. --- activesupport/test/testing/method_call_assertions_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'activesupport/test/testing') 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 -- cgit v1.2.3