diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2019-04-23 14:37:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-23 14:37:46 -0400 |
commit | 5566b4a63672d1a7c47476d48fe3cb91594e20b7 (patch) | |
tree | 82ff64ef95f3074884806ae73e028a2d1d74affc /railties/test | |
parent | 0920213cd5f112181a93966425267e240b96f125 (diff) | |
parent | d63f9383a6dabfaffbb464409ed94b8d77f12a4f (diff) | |
download | rails-5566b4a63672d1a7c47476d48fe3cb91594e20b7.tar.gz rails-5566b4a63672d1a7c47476d48fe3cb91594e20b7.tar.bz2 rails-5566b4a63672d1a7c47476d48fe3cb91594e20b7.zip |
Merge pull request #36067 from st0012/update-generator-for-api-app
Remove action_controller.perform_caching from api app's configs
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/api_app_generator_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/generators/api_app_generator_test.rb b/railties/test/generators/api_app_generator_test.rb index 503564beec..d03178da66 100644 --- a/railties/test/generators/api_app_generator_test.rb +++ b/railties/test/generators/api_app_generator_test.rb @@ -50,6 +50,13 @@ class ApiAppGeneratorTest < Rails::Generators::TestCase assert_file "config/application.rb", /config\.api_only = true/ assert_file "app/controllers/application_controller.rb", /ActionController::API/ + + assert_file "config/environments/development.rb" do |content| + assert_no_match(/action_controller\.perform_caching = true/, content) + end + assert_file "config/environments/production.rb" do |content| + assert_no_match(/action_controller\.perform_caching = true/, content) + end end def test_generator_if_skip_action_cable_is_given |