diff options
author | Tsukuru Tanimichi <info+git@ttanimichi.com> | 2018-05-07 17:25:01 +0900 |
---|---|---|
committer | Tsukuru Tanimichi <info+git@ttanimichi.com> | 2018-05-13 21:51:10 +0900 |
commit | 8efa112ca625cf8e895ed5af1433dce430929970 (patch) | |
tree | f925fb97db1dd171fa996f219b950045633b1776 /railties/test | |
parent | 9a1b99eb01eab3de4ab5c357058da0ecc38e434b (diff) | |
download | rails-8efa112ca625cf8e895ed5af1433dce430929970.tar.gz rails-8efa112ca625cf8e895ed5af1433dce430929970.tar.bz2 rails-8efa112ca625cf8e895ed5af1433dce430929970.zip |
Don't generate `config/spring.rb` in `app:update` task when spring isn't loaded
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index bcfbcdfd80..f73747208b 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -309,6 +309,17 @@ class AppGeneratorTest < Rails::Generators::TestCase end end + def test_app_update_does_not_generate_spring_contents_when_skip_spring_is_given + app_root = File.join(destination_root, "myapp") + run_generator [app_root, "--skip-spring"] + + FileUtils.cd(app_root) do + quietly { system("bin/rails app:update") } + end + + assert_no_file "#{app_root}/config/spring.rb" + end + def test_app_update_does_not_generate_action_cable_contents_when_skip_action_cable_is_given app_root = File.join(destination_root, "myapp") run_generator [app_root, "--skip-action-cable"] |