aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-10-05 09:47:01 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-10-05 09:47:01 +0900
commit13bbdc09ece4f48e9b2537092a4505a3942e373b (patch)
tree32946a5647f647fd9d90e0474cd42739d2a3c003 /railties
parentbd107964197989b5b3ec3395e3ab011bb9d662d7 (diff)
downloadrails-13bbdc09ece4f48e9b2537092a4505a3942e373b.tar.gz
rails-13bbdc09ece4f48e9b2537092a4505a3942e373b.tar.bz2
rails-13bbdc09ece4f48e9b2537092a4505a3942e373b.zip
Avoid `webpacker:install` if unnecessary
Since this is a test to check the behavior of `load_defaults`, webpacker is unnecessary.
Diffstat (limited to 'railties')
-rw-r--r--railties/test/generators/app_generator_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index 48e8b7123f..b7534ac3de 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -214,14 +214,14 @@ class AppGeneratorTest < Rails::Generators::TestCase
def test_new_application_load_defaults
app_root = File.join(destination_root, "myfirstapp")
- run_generator [app_root, "--no-skip-javascript"]
+ run_generator [app_root]
output = nil
assert_file "#{app_root}/config/application.rb", /\s+config\.load_defaults #{Rails::VERSION::STRING.to_f}/
Dir.chdir(app_root) do
- output = `./bin/rails r "puts Rails.application.config.assets.unknown_asset_fallback"`
+ output = `SKIP_REQUIRE_WEBPACKER=true ./bin/rails r "puts Rails.application.config.assets.unknown_asset_fallback"`
end
assert_equal "false\n", output