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 `[[]]`. |
||
---|---|---|
.. | ||
parallelization | ||
assertions.rb | ||
autorun.rb | ||
constant_lookup.rb | ||
declarative.rb | ||
deprecation.rb | ||
file_fixtures.rb | ||
isolation.rb | ||
method_call_assertions.rb | ||
parallelization.rb | ||
parallelize_executor.rb | ||
setup_and_teardown.rb | ||
stream.rb | ||
tagged_logging.rb | ||
time_helpers.rb |