rails--rails/activesupport/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
..
autoloading_fixtures Delete orphan autoloading fixtures 2021-04-06 20:14:10 +02:00
cache Fix tests for minitest 5.16 2022-06-23 08:32:11 -04:00
concurrency
core_ext Rename behaviour to behavior in test case names 2022-05-26 17:14:18 -04:00
dependencies
deprecation Fix includes of deprecation proxy modules 2022-06-02 18:13:31 -07:00
file_fixtures
fixtures
json Allow any module or class to be converted to JSON in a simple way 2021-06-18 14:06:50 +09:00
messages
metadata [Active Support] Add explicit assertions to tests with no assertions 2022-02-15 23:44:25 +00:00
notifications Only wrap subscriber exceptions if there is more than one 2021-11-02 16:47:37 +01:00
testing Remove the multi-call form of assert_called_with 2022-06-16 11:13:57 -04:00
xml_mini
abstract_unit.rb Deprecate preserving the pre-Ruby 2.4 behavior of `to_time` 2022-03-20 10:07:59 +00:00
actionable_error_test.rb
array_inquirer_test.rb Enable Lint/DuplicateMethods rubocop rule 2021-11-15 13:51:28 -05:00
autoload_test.rb
benchmarkable_test.rb
broadcast_logger_test.rb Fix TaggedLogging functionality when broadcasting: 2022-03-15 21:09:18 +01:00
callback_inheritance_test.rb Replace ableist language 2021-10-05 22:27:09 -04:00
callbacks_test.rb
clean_backtrace_test.rb chore: fix grammar and spelling 2021-04-12 05:30:44 +10:00
clean_logger_test.rb Fix logger format with Ruby 3.1 2021-12-20 22:36:33 +00:00
concern_test.rb
configurable_test.rb ActiveSupport::Configurable default value option 2021-07-20 10:36:58 -03:00
configuration_file_test.rb Change `yaml` to `YAML` 2022-03-29 15:19:22 +10:00
constantize_test_cases.rb Remove DependenciesTestHelpers 2021-04-03 19:24:12 +02:00
constantize_test_helpers.rb Remove DependenciesTestHelpers 2021-04-03 19:24:12 +02:00
current_attributes_test.rb Introduce ActiveSupport::IsolatedExecutionState for internal use 2021-11-18 15:55:15 +01:00
dependencies_test.rb Delete the classic version of AS::Dependencies.clear 2021-08-23 10:05:08 +02:00
deprecation_test.rb Rename behaviour to behavior in test case names 2022-05-26 17:14:18 -04:00
descendants_tracker_test.rb Fix DescendantTracker.clear on Ruby 3.1 2021-11-25 17:32:52 +01:00
digest_test.rb
encrypted_configuration_test.rb Credentials: support hash style access in more cases 2021-06-02 10:34:22 -05:00
encrypted_file_test.rb Raise missing key error when master key env var is blank 2021-06-03 16:21:53 +02:00
error_reporter_test.rb Error reporting API: Add a source attribute 2022-05-05 10:57:21 +02:00
evented_file_update_checker_test.rb Bubble assertion failures back to the main thread 2022-05-11 15:56:27 +09:30
execution_context_test.rb Extract ActiveSupport::ExecutionContext out of ActiveRecord::QueryLogs 2021-11-10 09:36:02 +01:00
executor_test.rb Wrap rails runner in executor 2022-06-10 14:16:49 +02:00
file_update_checker_shared_tests.rb Avoid double wait in EventedFileUpdateCheckerTest 2021-07-22 12:29:27 -05:00
file_update_checker_test.rb Avoid double wait in EventedFileUpdateCheckerTest 2021-07-22 12:29:27 -05:00
fork_tracker_test.rb
gzip_test.rb
hash_with_indifferent_access_test.rb remove testing HWIA serialization for old psych 2022-03-22 23:31:45 -04:00
i18n_test.rb
inflector_test.rb Support clearing acronyms in ActiveSupport::Inflector::Inflections 2021-06-15 10:22:19 +01:00
inflector_test_cases.rb Fix (Inflector::Methods#underscore): small regression 2021-10-28 00:25:09 +02:00
isolated_execution_state_test.rb Introduce ActiveSupport::IsolatedExecutionState for internal use 2021-11-18 15:55:15 +01:00
key_generator_test.rb ✂️ [ci skip] 2021-03-22 04:46:11 +09:00
lazy_load_hooks_test.rb
log_subscriber_test.rb Remove child event tracking from AS::Subscriber 2022-02-17 08:20:01 -08:00
logger_test.rb Respect the formatter keyword arg on init 2022-04-22 19:55:36 -04:00
message_encryptor_test.rb Change MessageEncryptor default serializer to JSON for Rails 7.1 2022-02-07 12:19:36 -05:00
message_verifier_test.rb Fix urlsafe MessageVerifier not to include padding 2022-06-22 15:15:02 +09:00
multibyte_chars_test.rb Rename behaviour to behavior in test case names 2022-05-26 17:14:18 -04:00
multibyte_proxy_test.rb
multibyte_test_helpers.rb
notifications_test.rb Make Notifier::Fanout faster and safer 2022-06-01 18:54:44 -07:00
number_helper_i18n_test.rb
number_helper_test.rb Fix number_to_currency regression in handling "-0.0" 2021-08-25 22:30:12 -04:00
option_merger_test.rb Fix with_options bug when first argument is a Proc 2022-05-28 16:07:34 -04:00
ordered_hash_test.rb
ordered_options_test.rb Removed unwanted requires of and fixed rubocop errors 2022-03-10 01:19:55 +05:30
parameter_filter_test.rb Fix misspelling of value is tests 2022-02-15 14:50:33 +01:00
per_thread_registry_test.rb Eliminate internal uses of `PerThreadRegistry` and deprecate it 2021-11-22 09:53:16 +01:00
reloader_test.rb
rescuable_test.rb
safe_buffer_test.rb Strings returned from `strip_tags` are correctly tagged `html_safe?` 2022-05-31 10:02:07 -04:00
secure_compare_rotator_test.rb
security_utils_test.rb secure_compare: Check byte size instead of length 2021-04-02 12:45:29 -04:00
share_lock_test.rb
silence_logger_test.rb
string_inquirer_test.rb Enable Lint/DuplicateMethods rubocop rule 2021-11-15 13:51:28 -05:00
subscriber_test.rb Rename behaviour to behavior in test case names 2022-05-26 17:14:18 -04:00
tagged_logging_test.rb Fix TaggedLogging functionality when broadcasting: 2022-03-15 21:09:18 +01:00
test_case_test.rb Improve default message for assert_changes 2022-03-31 15:58:38 -04:00
time_travel_test.rb Make #to_fs the default replacement for #to_s(:format) 2022-02-07 12:41:21 +01:00
time_zone_test.rb Update ActiveSupport time zone tests for UTC-12 (International Date Line West) 2022-04-11 09:35:41 -05:00
time_zone_test_helpers.rb Deprecate preserving the pre-Ruby 2.4 behavior of `to_time` 2022-03-20 10:07:59 +00:00
transliterate_test.rb
xml_mini_test.rb Allow to opt-in to the new TimeWithZone.name and fix XmlMini serialization 2021-04-12 22:03:31 +02:00