Permalink
Browse files

Make sure assets is disable when --skip-sprockets is used

  • Loading branch information...
1 parent 201f8d7 commit 4017f6c7e6990e04d81fef943fd6bd6691e11f8f @rafaelfranca rafaelfranca committed Jan 5, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 railties/test/generators/app_generator_test.rb
@@ -224,7 +224,7 @@ def test_generator_if_skip_sprockets_is_given
run_generator [destination_root, "--skip-sprockets"]
assert_file "config/application.rb" do |content|
assert_match(/#\s+require\s+["']sprockets\/railtie["']/, content)
- assert_no_match(/config\.assets\.enabled = true/, content)
+ assert_match(/config\.assets\.enabled = false/, content)
end
assert_file "Gemfile" do |content|
assert_no_match(/sass-rails/, content)
@@ -238,6 +238,7 @@ def test_generator_if_skip_sprockets_is_given
assert_no_match(/config\.assets\.digest = true/, content)
assert_no_match(/config\.assets\.js_compressor = :uglifier/, content)
assert_no_match(/config\.assets\.css_compressor = :sass/, content)
+ assert_no_match(/config\.assets\.version = '1\.0'/, content)
end
assert_file "test/performance/browsing_test.rb"
end

0 comments on commit 4017f6c

Please sign in to comment.