aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorMarc Schütz <schuetzm@gmx.net>2014-06-14 11:06:18 +0200
committerMarc Schütz <schuetzm@gmx.net>2014-06-14 12:03:09 +0200
commite3dca3acc6919b0824bc126f8a397f5f4e7484a2 (patch)
tree842529d92ed3597adaa246fb4245047426176901 /railties/test
parenta041107bf50d42ca92d41c89355ba663d700af48 (diff)
downloadrails-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.rb14
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