diff options
author | Andy Atkinson <andyatkinson@gmail.com> | 2017-05-25 15:47:29 -0500 |
---|---|---|
committer | Andy Atkinson <andyatkinson@gmail.com> | 2017-05-25 15:47:29 -0500 |
commit | a4319854ee7371518604dba8e51783fd4204e8dc (patch) | |
tree | 988a5ca9fa0780d8c4dfd102fe5dc2b1cae415e0 /railties/test | |
parent | 48f01f04d486667f1adf84a768e127308326e551 (diff) | |
download | rails-a4319854ee7371518604dba8e51783fd4204e8dc.tar.gz rails-a4319854ee7371518604dba8e51783fd4204e8dc.tar.bz2 rails-a4319854ee7371518604dba8e51783fd4204e8dc.zip |
Remove redundant test method
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index ff829eb197..31a5efb1b7 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -412,13 +412,6 @@ class AppGeneratorTest < Rails::Generators::TestCase end end - def test_generator_if_skip_yarn_is_given - run_generator [destination_root, "--skip-yarn"] - - assert_no_file "package.json" - assert_no_file "bin/yarn" - end - def test_generator_if_skip_action_cable_is_given run_generator [destination_root, "--skip-action-cable"] assert_file "config/application.rb", /#\s+require\s+["']action_cable\/engine["']/ @@ -524,6 +517,7 @@ class AppGeneratorTest < Rails::Generators::TestCase def test_generator_for_yarn_skipped run_generator([destination_root, "--skip-yarn"]) assert_no_file "package.json" + assert_no_file "bin/yarn" assert_file "config/initializers/assets.rb" do |content| assert_no_match(/node_modules/, content) |