diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-17 19:47:25 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-17 19:47:25 -0300 |
commit | 0724706b6de4f7e678c102fc2c841922d5a1b23d (patch) | |
tree | 69dd6b831d0acc28ca7ddc5fa377f441c8da460f /railties/test | |
parent | 5a7784afa66a9b84750dc0c062e7a9ae3e670cbc (diff) | |
parent | e3dca3acc6919b0824bc126f8a397f5f4e7484a2 (diff) | |
download | rails-0724706b6de4f7e678c102fc2c841922d5a1b23d.tar.gz rails-0724706b6de4f7e678c102fc2c841922d5a1b23d.tar.bz2 rails-0724706b6de4f7e678c102fc2c841922d5a1b23d.zip |
Merge pull request #15716 from schuetzm/skip-turbolinks
Add an option to skip installation of Turbolinks
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 74cff08676..74c7c6e298 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -448,6 +448,20 @@ class AppGeneratorTest < Rails::Generators::TestCase end end + def test_skip_turbolinks + run_generator [destination_root, "--skip-turbolinks"] + + assert_file "Gemfile" do |content| + assert_no_match(/turbolinks/, content) + end + assert_file "app/views/layouts/application.html.erb" do |content| + assert_no_match(/data-turbolinks-track/, content) + end + assert_file "app/assets/javascripts/application.js" do |content| + assert_no_match(/turbolinks/, content) + end + end + def test_gitignore_when_sqlite3 run_generator |