diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-10-26 20:47:47 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-10-26 20:47:47 -0500 |
commit | bf17c8a531bc8059d50ad731398002a3e7162a7d (patch) | |
tree | bb144c0c7295f99d5aeb154b5b6722b27f29fab7 /railties/test/generators | |
parent | 92449280107fe7134ffd7825a0c7e540a65adc24 (diff) | |
download | rails-bf17c8a531bc8059d50ad731398002a3e7162a7d.tar.gz rails-bf17c8a531bc8059d50ad731398002a3e7162a7d.tar.bz2 rails-bf17c8a531bc8059d50ad731398002a3e7162a7d.zip |
Add back --skip-turbolinks and remove --skip-gems
For the most part of cases --skip-gems option just remove one line in
the Gemfile. This is not worth for the complexity it adds.
Closes #17196
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index b492258efb..501b2e0811 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -450,12 +450,11 @@ class AppGeneratorTest < Rails::Generators::TestCase end end - def test_generator_if_skip_gems_is_given - run_generator [destination_root, "--skip-gems", "turbolinks", "coffee-rails"] + def test_generator_if_skip_turbolinks_is_given + run_generator [destination_root, "--skip-turbolinks"] assert_file "Gemfile" do |content| assert_no_match(/turbolinks/, content) - assert_no_match(/coffee-rails/, content) end assert_file "app/views/layouts/application.html.erb" do |content| assert_no_match(/data-turbolinks-track/, content) |