rails/railties/test/application
Masaki Hara 89f5789aad Delay ActionDispatch::Response configuration to load-time
It fixes the problem in propagating return_only_media_type_on_content_type
and fixes the corresponding test being ineffective.

The mentioned test addes the following line:
...config.action_dispatch.return_only_media_type_on_content_type = true
to the config and checks if it takes effect. However, in this scenario,
the value is already true before this line.
Moreover, the users are supposed to flip this from true to false in real
situations.

This commit flips the config in the test, making it to fail as
expected. The next commit will fix the failure.

In order for return_only_media_type_on_content_type to appropriately
take effect on ActionDispatch::Response, we want to know when
ActionDispatch::Response is loaded.
As load hooks for ActionDispatch would be too broad, the appropriate
registry is for ActionDispatch::Response itself.

Looking into other examples, a hook name is a full class name in
snake case with `_base` suffix omitted, if any. Therefore, in this case,
:action_dispatch_response seems appropriate.
2019-10-01 17:42:05 +09:00
..
configuration Use respond_to test helpers 2018-01-25 23:32:58 -05:00
initializers Don't drop_table before schema cache tests 2019-06-13 13:43:26 +09:00
middleware Fix keyword arguments warnings 2019-09-09 22:49:09 +09:00
rack Log the remote IP addr of clients behind a proxy 2018-07-31 20:45:37 +05:30
rake Instantiate ConnectionPool with a DatabaseConfig rather than a ConnectionSpecification 2019-09-24 15:12:22 +02:00
asset_debugging_test.rb url -> URL where apt except inside actionpack/ 2019-04-01 22:56:35 +05:30
assets_test.rb Use match? where we don't need MatchData 2019-07-29 14:23:10 +09:00
bin_setup_test.rb Make bin/setup test pass even if the database does not exist 2019-06-30 10:15:26 +09:00
configuration_test.rb Delay ActionDispatch::Response configuration to load-time 2019-10-01 17:42:05 +09:00
console_test.rb Add config.disable_sandbox option to Rails console 2019-03-23 19:31:03 +09:00
content_security_policy_test.rb Add the ability to set the CSP nonce only to the specified directives 2019-06-22 12:44:37 +09:00
credentials_test.rb Restructure credentials after environment overrides. 2019-01-14 20:13:00 +01:00
current_attributes_integration_test.rb Use try only when we're unsure if the receiver would respond_to the method 2019-08-01 17:58:00 +09:00
dbconsole_test.rb Use correct variable 2018-09-11 07:06:30 +09:00
feature_policy_test.rb Adds support for configuring HTTP Feature Policy (#33439) 2019-07-10 15:33:15 -07:00
generators_test.rb Add skip-collision-check option to generator 2019-07-05 18:55:47 +09:00
help_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30
integration_test_case_test.rb rails new runs rails active_storage:install 2017-11-06 21:29:14 +00:00
loading_test.rb Move SchemaMigration to migration_context 2019-06-14 11:15:08 -04:00
mailer_previews_test.rb Add title tag to mailer previews 2019-09-02 14:44:46 -07:00
middleware_test.rb Adds support for configuring HTTP Feature Policy (#33439) 2019-07-10 15:33:15 -07:00
multiple_applications_test.rb Zeitwerk integration 2019-02-12 02:28:04 -08:00
paths_test.rb Fix CustomCops/AssertNot to allow it to have failure message 2018-05-13 11:32:47 +09:00
per_request_digest_cache_test.rb Include ActiveSupport::Testing::MethodCallAssertions in railties/test/isolation/abstract_unit.rb 2018-06-09 00:00:28 +03:00
rackup_test.rb Remove unnecessary migration deletion 2017-11-08 13:24:16 +09:00
rake_test.rb Removed webpacker:compile step from scaffold test as it is not required and assets are already precompiled in build_app step 2019-07-26 20:20:07 +05:30
rendering_test.rb Fix RenderingTest in railtie 2018-04-04 06:12:24 +09:00
routing_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
runner_test.rb Properly expand the environment's name in all commands 2019-03-15 07:43:10 +09:00
server_test.rb Update test to avoid Puma output format change 2019-09-25 13:11:58 -04:00
system_test_case_test.rb Define the url_options needed for SytemTest inside the route proxy: 2019-07-24 01:18:00 +02:00
test_runner_test.rb Use symbols everywhere for database configurations 2019-09-13 08:53:22 -04:00
test_test.rb Sync test DB from schema using its SHA1 2019-08-06 12:44:22 -07:00
url_generation_test.rb Fix secret_key_base for Railties 2019-03-13 16:41:29 -04:00
version_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30
watcher_test.rb Correctly classify the files and directories that pass to watcher 2019-09-02 11:22:39 +09:00
zeitwerk_integration_test.rb defines Rails.autoloaders.log! 2019-08-13 18:14:50 +02:00