diff options
author | Marc Schütz <schuetzm@gmx.net> | 2014-06-14 11:06:18 +0200 |
---|---|---|
committer | Marc Schütz <schuetzm@gmx.net> | 2014-06-14 12:03:09 +0200 |
commit | e3dca3acc6919b0824bc126f8a397f5f4e7484a2 (patch) | |
tree | 842529d92ed3597adaa246fb4245047426176901 /railties/test | |
parent | a041107bf50d42ca92d41c89355ba663d700af48 (diff) | |
download | rails-e3dca3acc6919b0824bc126f8a397f5f4e7484a2.tar.gz rails-e3dca3acc6919b0824bc126f8a397f5f4e7484a2.tar.bz2 rails-e3dca3acc6919b0824bc126f8a397f5f4e7484a2.zip |
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 |