rails--rails/activesupport/test/cache
eileencodes 9766eb4a83
Fix tests for minitest 5.16
In minitest/minitest@6e06ac9 minitest changed such that it now accepts
`kwargs` instead of requiring kwargs to be shoved into the args array.
This is a good change but required some updates to our test code to get
the new version of minitest passing.

Changes are as follows:

1) Lock minitest to 5.15 for Ruby 2.7. We don't love this change but
it's pretty difficult to get 2.7 and 3.0 to play nicely together with
the new kwargs changes. Dropping 2.7 support isn't an option right
now for Rails. This is safe because all of the code changes here are
internal methods to Rails like assert_called_with. Applications
shouldn't be consuming them as they are no-doc'd.
2) Update the `assert_called_with` method to take any kwargs but also
the returns kwarg.
3) Update callers of `assert_called_with` to move the kwargs outside the
args array.
4) Update the message from marshaled exceptions. In 5.16 the exception
message is "result not reported" instead of "Wrapped undumpable
exception".

Co-authored-by: Matthew Draper <matthew@trebex.net>
2022-06-23 08:32:11 -04:00
..
behaviors Fix local cache method signature 2022-06-10 11:40:19 +01:00
stores Fix tests for minitest 5.16 2022-06-23 08:32:11 -04:00
behaviors.rb init commit 2021-08-23 17:35:00 -07:00
cache_entry_test.rb Allow to set cache expiry as an absolute timestamp 2021-04-06 10:49:05 +02:00
cache_key_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
cache_store_logger_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
cache_store_namespace_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
cache_store_setting_test.rb Enable connection pooling by default for MemCacheStore and `RedisCacheStore` 2022-06-07 11:40:17 +03:00
coder_test.rb remove unused requires in ActiveSupport::Cache 2022-02-21 14:13:56 -05:00
local_cache_middleware_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00