mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
1a4e27e216
`[].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 `[[]]`. |
||
---|---|---|
.. | ||
active_support | ||
active_support.rb |