rails--rails/activestorage/test
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
..
analyzer Instrument ActiveStorage analyzers 2021-08-17 16:55:05 +09:00
controllers Fixes ActiveStorage proxy downloads of files over 5mb in S3-like storage services 2022-05-16 08:09:12 -03:00
database Fix ActiveStorage tests for load_defaults 7.0 2021-06-21 07:44:33 +09:00
dummy Added validation for global active storage service configuration 2022-05-31 08:36:46 -07:00
fixtures Reduce file size of tiff image in Active Storage 2021-08-12 11:37:44 -03:00
jobs Correct test class name 2019-09-28 10:31:26 -04:00
models Fix tests for minitest 5.16 2022-06-23 08:32:11 -04:00
previewer Active Storage: raise PreviewError when a preview cannot be generated 2021-02-26 14:06:52 -05:00
service Enable `Style/MapToHash` cop 2022-02-26 04:31:03 +09:00
template Extend audio_tag and video_tag to accept Active Storage attachments. 2022-03-14 02:05:37 -03:00
urls Make vips the default variant processor for new apps 2021-07-14 14:26:43 -03:00
engine_test.rb Treat `image/bmp` as a valid content type 2022-04-19 08:08:16 +10:00
fixture_set_test.rb Fix Flaky ActiveStorage test (#41225) 2021-01-24 18:29:11 +01:00
javascript_package_test.rb Enforce that activestorage compiled JS is in sync with source code 2019-10-18 18:02:02 -07:00
migrations_test.rb Respect Active Record's primary_key_type in Active Storage migrations 2021-06-11 11:51:07 +03:00
test_helper.rb Merge branch 'main' into as-eager-more-methods-3 2022-05-16 12:18:30 -07:00