aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-10-25 16:20:47 -0400
committerGitHub <noreply@github.com>2018-10-25 16:20:47 -0400
commitc4fd38a206a82323b14ad41550f04a2258af955a (patch)
tree009d3e5539acdbf0da3bc08797cbc8442b0e051e /activesupport/lib
parenta3dcba42e2422eb9c2e77011a39ce72dc934b420 (diff)
parent9d0cf52096dd6f7cb4b153984630eed97dcd8a8c (diff)
downloadrails-c4fd38a206a82323b14ad41550f04a2258af955a.tar.gz
rails-c4fd38a206a82323b14ad41550f04a2258af955a.tar.bz2
rails-c4fd38a206a82323b14ad41550f04a2258af955a.zip
Merge pull request #34317 from bogdanvlviv/fix-assert_called_with
`assert_called_with` should require `args` argument
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/testing/method_call_assertions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/testing/method_call_assertions.rb b/activesupport/lib/active_support/testing/method_call_assertions.rb
index fdc70e1cd3..eba41aa907 100644
--- a/activesupport/lib/active_support/testing/method_call_assertions.rb
+++ b/activesupport/lib/active_support/testing/method_call_assertions.rb
@@ -17,7 +17,7 @@ module ActiveSupport
assert_equal times, times_called, error
end
- def assert_called_with(object, method_name, args = [], returns: nil)
+ def assert_called_with(object, method_name, args, returns: nil)
mock = Minitest::Mock.new
if args.all? { |arg| arg.is_a?(Array) }