diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-09-13 18:36:38 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-09-13 18:36:38 -0500 |
commit | a89d39ec889c2658120e508bd182de7be3ccdcc9 (patch) | |
tree | 358a8ebd476cb626f3fbad0e15473ff9522c6d40 /railties/test | |
parent | f22407dd34024886edd8a8f618dc0b19152776a0 (diff) | |
download | rails-a89d39ec889c2658120e508bd182de7be3ccdcc9.tar.gz rails-a89d39ec889c2658120e508bd182de7be3ccdcc9.tar.bz2 rails-a89d39ec889c2658120e508bd182de7be3ccdcc9.zip |
Fix broken asset test
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/assets_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb index 0c40b88cf9..9b141ccbac 100644 --- a/railties/test/application/assets_test.rb +++ b/railties/test/application/assets_test.rb @@ -38,7 +38,7 @@ module ApplicationTests test "assets do not require compressors until it is used" do app_file "app/assets/javascripts/demo.js.erb", "<%= :alert %>();" - add_to_config "config.assets.compile = true" + app_file "config/initializers/compile.rb", "Rails.application.config.assets.compile = true" ENV["RAILS_ENV"] = "production" require "#{app_path}/config/environment" @@ -317,7 +317,7 @@ module ApplicationTests test "assets routes are not drawn when compilation is disabled" do app_file "app/assets/javascripts/demo.js.erb", "<%= :alert %>();" - app_file "config/initializers/compile.rb", "Rails.application.config.assets.compile = false" + add_to_config "config.assets.compile = false" ENV["RAILS_ENV"] = "production" require "#{app_path}/config/environment" |