diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-12-11 08:48:58 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-12-11 08:55:01 -0500 |
commit | ea5a70a462b463d46b4ec558cbf3e8db685acaf0 (patch) | |
tree | 5185e451de74b5b629a48ae2cee331c5cdffd424 /railties/test/generators | |
parent | 79835090e2ddd3f73101f52cfa74ad38ce130374 (diff) | |
download | rails-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.rb | 7 |
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 |