aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/app_generator_test.rb
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-03-22 21:49:33 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-03-22 21:55:28 +0900
commit142db6269bf6486440627d9cd884dc0e33179313 (patch)
treefcd29ff19b26f64f0a2d7a69c5887d859f91c866 /railties/test/generators/app_generator_test.rb
parent34fe2a4fc778d18b7fe6bdf3629c1481bee789b9 (diff)
downloadrails-142db6269bf6486440627d9cd884dc0e33179313.tar.gz
rails-142db6269bf6486440627d9cd884dc0e33179313.tar.bz2
rails-142db6269bf6486440627d9cd884dc0e33179313.zip
Don't comment out config.file_watcher during Rails upgrade
This is necessary only when updating to Rails 5.0, it is not necessary for updating to 5.1. Related #24243
Diffstat (limited to 'railties/test/generators/app_generator_test.rb')
-rw-r--r--railties/test/generators/app_generator_test.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index ac43e8d22d..f6cdbd34fe 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -199,20 +199,6 @@ class AppGeneratorTest < Rails::Generators::TestCase
end
end
- def test_app_update_dont_set_file_watcher
- app_root = File.join(destination_root, "myapp")
- run_generator [app_root]
-
- stub_rails_application(app_root) do
- generator = Rails::Generators::AppGenerator.new ["rails"], [], destination_root: app_root, shell: @shell
- generator.send(:app_const)
- quietly { generator.send(:update_config_files) }
- assert_file "#{app_root}/config/environments/development.rb" do |content|
- assert_match(/# config.file_watcher/, content)
- end
- end
- end
-
def test_app_update_create_new_framework_defaults
app_root = File.join(destination_root, "myapp")
run_generator [app_root]