aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2011-12-11 08:48:58 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2011-12-11 08:55:01 -0500
commitea5a70a462b463d46b4ec558cbf3e8db685acaf0 (patch)
tree5185e451de74b5b629a48ae2cee331c5cdffd424 /railties/test/generators
parent79835090e2ddd3f73101f52cfa74ad38ce130374 (diff)
downloadrails-ea5a70a462b463d46b4ec558cbf3e8db685acaf0.tar.gz
rails-ea5a70a462b463d46b4ec558cbf3e8db685acaf0.tar.bz2
rails-ea5a70a462b463d46b4ec558cbf3e8db685acaf0.zip
Skip assets options in environments files when --skip-sprockets is used
Diffstat (limited to 'railties/test/generators')
-rw-r--r--railties/test/generators/app_generator_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index 4c22e7a3ce..ef9f2b22a7 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -211,6 +211,13 @@ class AppGeneratorTest < Rails::Generators::TestCase
assert_no_match(/coffee-rails/, content)
assert_no_match(/uglifier/, content)
end
+ assert_file "config/environments/development.rb" do |content|
+ assert_no_match(/config\.assets\.debug = true/, content)
+ end
+ assert_file "config/environments/production.rb" do |content|
+ assert_no_match(/config\.assets\.digest = true/, content)
+ assert_no_match(/config\.assets\.compress = true/, content)
+ end
assert_file "test/performance/browsing_test.rb"
end