From 5ba606e1c6aa719fc25e7d10a4d460aae3c8e22c Mon Sep 17 00:00:00 2001 From: Lauro Caetano Date: Fri, 22 Nov 2013 10:32:52 -0200 Subject: Fix the assertion for not inclusion of turbolinks on application.js. We were asserting if `//= turbolinks` was not present while the correct is asserting that `//= require turbolinks` is not present. --- railties/test/generators/app_generator_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/test') diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 8b0dc39d92..6fccd1b399 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -202,7 +202,7 @@ class AppGeneratorTest < Rails::Generators::TestCase end assert_file "app/assets/javascripts/application.js" do |contents| - assert_no_match %r{^//=\s+turbolinks\s}, contents + assert_no_match %r{^//= require turbolinks}, contents end ensure template.close -- cgit v1.2.3