diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-10-19 17:56:09 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-10-19 17:56:09 +0900 |
commit | 86a12b6f2932ba1a3b5f0417688ffe34ea6bab25 (patch) | |
tree | 3390d34261e3fa7b63ed9237e3e9953512e55473 /railties | |
parent | d1970596664aa72f9e5ae10b2e4f35cc3c4099dd (diff) | |
download | rails-86a12b6f2932ba1a3b5f0417688ffe34ea6bab25.tar.gz rails-86a12b6f2932ba1a3b5f0417688ffe34ea6bab25.tar.bz2 rails-86a12b6f2932ba1a3b5f0417688ffe34ea6bab25.zip |
Avoid running bundler on tests that don't need it
If the dev option is specified, Gemfile contains gem which specifies GitHub.
This will take time to execute, so should avoid it in unnecessary tests.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index be97abfa52..e47d180809 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -710,7 +710,7 @@ class AppGeneratorTest < Rails::Generators::TestCase end def test_web_console_with_dev_option - run_generator [destination_root, "--dev"] + run_generator [destination_root, "--dev", "--skip-bundle"] assert_file "Gemfile" do |content| assert_match(/gem 'web-console',\s+github: 'rails\/web-console'/, content) @@ -780,7 +780,7 @@ class AppGeneratorTest < Rails::Generators::TestCase end def test_spring_with_dev_option - run_generator [destination_root, "--dev"] + run_generator [destination_root, "--dev", "--skip-bundle"] assert_no_gem "spring" end @@ -878,7 +878,7 @@ class AppGeneratorTest < Rails::Generators::TestCase end def test_bootsnap_with_dev_option - run_generator [destination_root, "--dev"] + run_generator [destination_root, "--dev", "--skip-bundle"] assert_no_gem "bootsnap" assert_file "config/boot.rb" do |content| |