From f66a977fc7ae30d2a07124ad91924c4ee638a703 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Tue, 8 Jan 2019 22:16:58 +0100 Subject: Revert "Merge pull request #34387 from yhirano55/rails_info_properties_json" We had a discussion on the Core team and we don't want to expose this information as a JSON endpoint and not by default. It doesn't make sense to expose this JSON locally and this controller is only accessible in dev, so the proposed access from a production app seems off. This reverts commit 8eaffe7e89719ac62ff29c2e4208cfbeb1cd1c38, reversing changes made to b6e4305c3bca4c673996d0af9db0f4cfbf50215e. --- railties/test/generators/app_generator_test.rb | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'railties/test/generators') diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 47e401c34f..a421ac326d 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -230,14 +230,6 @@ class AppGeneratorTest < Rails::Generators::TestCase assert_equal "false\n", output end - def test_csp_initializer_include_connect_src_example - run_generator - - assert_file "config/initializers/content_security_policy.rb" do |content| - assert_match(/# policy\.connect_src/, content) - end - end - def test_app_update_keep_the_cookie_serializer_if_it_is_already_configured app_root = File.join(destination_root, "myapp") run_generator [app_root] @@ -845,9 +837,6 @@ class AppGeneratorTest < Rails::Generators::TestCase end assert_no_gem "webpacker" - assert_file "config/initializers/content_security_policy.rb" do |content| - assert_no_match(/policy\.connect_src/, content) - end end def test_webpack_option_with_js_framework -- cgit v1.2.3