1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/test
John Crepezzi df0de681dc Remove the multi-call form of assert_called_with
The `assert_called_with` helper allows passing a multi-dimensional array to
mock multiple calls to the same method for a given block. This works
fine now, but when adding support for real kwargs arguments to line up with
recent upgrades in Minitest, this approach is no longer workable because
we can't pass multiple sets of differing kwargs.

Rather than complicated this method further, this commit removes the
multi-call form of `assert_called_with` and modifies the tests that
currently make use of that functionality to just use the underlying
`Minitest::Mock` calls.

Co-authored-by: Eileen M. Uchitelle <eileencodes@gmail.com>
2022-06-16 11:13:57 -04:00
..
actionpack Fix flaky Action View tests 2022-02-23 09:39:57 -05:00
activerecord Fix flaky Action View tests 2022-02-23 09:39:57 -05:00
fixtures Make #to_fs the default replacement for #to_s(:format) 2022-02-07 12:41:21 +01:00
lib Enable Style/ExplicitBlockArgument cop 2021-09-05 17:06:19 +02:00
template Remove the multi-call form of assert_called_with 2022-06-16 11:13:57 -04:00
ujs Define config.enable_reloading to be !config.cache_classes 2022-04-14 18:11:36 +02:00
abstract_unit.rb Delete AS::Dependencies.unhook! 2021-08-17 05:18:22 +02:00
active_record_unit.rb Module#const_set is a public method 2020-09-15 17:19:37 +09:00