Permalink
Browse files

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.
  • Loading branch information...
laurocaetano committed Nov 22, 2013
1 parent 1896436 commit 5ba606e1c6aa719fc25e7d10a4d460aae3c8e22c
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/test/generators/app_generator_test.rb
@@ -202,7 +202,7 @@ def test_skip_turbolinks_when_it_is_not_on_gemfile
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

0 comments on commit 5ba606e

Please sign in to comment.