1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/lib
Jonathan Hefner 1a4e27e216 Fix assert_called_with with empty args array
`[].all?(Array)` returns `true`.  Thus when an empty `args` array was
passed to `assert_called_with`, `expect` would not be called on the mock
object, eventually leading to an "unmocked method" error.

This commit allows an empty array to be passed as `args`, which behaves
the same as passing `[[]]`.
2021-12-08 12:15:36 -06:00
..
active_support Fix assert_called_with with empty args array 2021-12-08 12:15:36 -06:00
active_support.rb Report Memcached and Redis cache errors to Rails.error 2021-11-24 12:25:03 +01:00