diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-04-15 10:44:21 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-04-15 10:44:21 +0900 |
commit | 10fa3b3792153c2a213f837bcf51bbf6844c1661 (patch) | |
tree | e730e7f8db95a7de02c0f827ca3eb48dc9722100 /railties | |
parent | 3a67d9b6c1d9ca45723b1f83bed01ff56a41062e (diff) | |
download | rails-10fa3b3792153c2a213f837bcf51bbf6844c1661.tar.gz rails-10fa3b3792153c2a213f837bcf51bbf6844c1661.tar.bz2 rails-10fa3b3792153c2a213f837bcf51bbf6844c1661.zip |
Make test application the same state as `app:update`
In `app:update`, it is decided whether to skip depending on whether
`Spring` is defined or not.
However, `spring` is not currently specified in Gemfile. As a result,
`app:update` determines that `Spring` is not used, and diff appears in
the result file.
If there is a difference, the console for processing the difference is
output and the test stops. To avoid this, do not include `Spring` in app.
This is a bit strange approach, so I will revisit this later.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index c44a2b3ffa..6e7f6ec920 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -478,7 +478,8 @@ class AppGeneratorTest < Rails::Generators::TestCase end def test_app_update_does_not_change_config_target_version - run_generator + app_root = File.join(destination_root, "myapp") + run_generator [app_root, "--skip-spring"] FileUtils.cd(destination_root) do config = "config/application.rb" |