From e49c2cd743eaf3fbaa1215e4922b2a59f8e3b5f8 Mon Sep 17 00:00:00 2001
From: Ronak Jangir <ronakjangir47@gmail.com>
Date: Sat, 15 Aug 2015 14:14:55 +0530
Subject: Replacing lambda with proc getting argument error because of it.

---
 activesupport/lib/active_support/testing/method_call_assertions.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'activesupport/lib')

diff --git a/activesupport/lib/active_support/testing/method_call_assertions.rb b/activesupport/lib/active_support/testing/method_call_assertions.rb
index 517f02e3ef..155d3344d3 100644
--- a/activesupport/lib/active_support/testing/method_call_assertions.rb
+++ b/activesupport/lib/active_support/testing/method_call_assertions.rb
@@ -5,7 +5,7 @@ module ActiveSupport
         def assert_called(object, method_name, message = nil, times: 1)
           times_called = 0
 
-          object.stub(method_name, -> { times_called += 1 }) { yield }
+          object.stub(method_name, proc { times_called += 1 }) { yield }
 
           error = "Expected #{method_name} to be called #{times} times, " \
             "but was called #{times_called} times"
-- 
cgit v1.2.3