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/active_support/testing
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
..
parallelization
assertions.rb assert_changes works on including Assertions class 2021-07-25 14:27:18 -04:00
autorun.rb
constant_lookup.rb
declarative.rb
deprecation.rb Document ActiveSupport::Testing::Deprecation 2021-12-03 15:04:25 -05:00
file_fixtures.rb
isolation.rb Replace ableist language 2021-10-05 22:27:09 -04:00
method_call_assertions.rb Fix assert_called_with with empty args array 2021-12-08 12:15:36 -06:00
parallelization.rb Parallelize tests only when overhead is justified 2021-07-14 13:36:28 +02:00
parallelize_executor.rb Fix "warning: instance variable @parallelized not initialized" 2021-08-07 13:04:31 +09:00
setup_and_teardown.rb
stream.rb Enable Style/ExplicitBlockArgument cop 2021-09-05 17:06:19 +02:00
tagged_logging.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
time_helpers.rb Travel back after block 2021-06-08 16:54:42 +02:00