@@ -1405,6 +1405,13 @@ If set to `false`:
1405
1405
1406
1406
The default value is `true` for new apps. Upgraded apps will have that value set to `false` for backwards-compatibility.
1407
1407
1408
+ #### `config.active_support.executor_around_test_case`
1409
+
1410
+ Configure the test suite to call `Rails.application.executor.wrap` around test cases.
1411
+ This makes test cases behave closer to an actual request or job.
1412
+ Several features that are normally disabled in test, such as Active Record query cache
1413
+ and asynchronous queries will then be enabled.
1414
+
1408
1415
#### `ActiveSupport::Logger.silencer`
1409
1416
1410
1417
Is set to `false` to disable the ability to silence logging in a block. The default is `true`.
@@ -1721,6 +1728,7 @@ Accepts a string for the HTML tag used to wrap attachments. Defaults to `"action
1721
1728
- ` config.active_support.hash_digest_class` : ` OpenSSL::Digest::SHA256`
1722
1729
- ` config.active_support.cache_format_version` : ` 7.0`
1723
1730
- ` config.active_support.remove_deprecated_time_with_zone_name` : ` true`
1731
+ - ` config.active_support.executor_around_test_case` : ` true`
1724
1732
- ` config.action_dispatch.return_only_request_media_type_on_content_type` : ` false`
1725
1733
- ` config.action_controller.silence_disabled_session_errors` : ` false`
1726
1734
- ` config.action_mailer.smtp_timeout` : ` 5`
@@ -1807,6 +1815,7 @@ Accepts a string for the HTML tag used to wrap attachments. Defaults to `"action
1807
1815
- ` config.active_support.hash_digest_class` : ` OpenSSL::Digest::MD5`
1808
1816
- ` config.active_support.key_generator_hash_digest_class` : ` OpenSSL::Digest::SHA1`
1809
1817
- ` config.active_support.cache_format_version` : ` 6.1`
1818
+ - ` config.active_support.executor_around_test_case` : ` false`
1810
1819
- ` config.action_dispatch.return_only_request_media_type_on_content_type` : ` true`
1811
1820
- ` ActiveSupport.utc_to_local_returns_utc_offset_times` : ` false`
1812
1821
- ` config.action_mailer.smtp_timeout` : ` nil`
0 commit comments