aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-10-04 11:24:12 +0200
committerJosé Valim <jose.valim@gmail.com>2011-10-04 11:25:36 +0200
commit7f1a666db57983814e175cb5b54bb6621ec95c4f (patch)
tree205458145643a25fa5154aeb58fe8dc8aa06e8d4 /railties/test
parent88f60fd1a744d93528dc36fa1461a59df3efc6a3 (diff)
downloadrails-7f1a666db57983814e175cb5b54bb6621ec95c4f.tar.gz
rails-7f1a666db57983814e175cb5b54bb6621ec95c4f.tar.bz2
rails-7f1a666db57983814e175cb5b54bb6621ec95c4f.zip
Fix failing tests and refactor assets.rake
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/application/assets_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb
index e0e36063c8..efbed35bdf 100644
--- a/railties/test/application/assets_test.rb
+++ b/railties/test/application/assets_test.rb
@@ -247,7 +247,7 @@ module ApplicationTests
test "precompile properly refers files referenced with asset_path and and run in the provided RAILS_ENV" do
app_file "app/assets/stylesheets/application.css.erb", "<%= asset_path('rails.png') %>"
# digest is default in false, we must enable it for test environment
- add_to_config "config.assets.digest = true"
+ add_to_env_config "test", "config.assets.digest = true"
quietly do
Dir.chdir(app_path){ `bundle exec rake assets:precompile RAILS_ENV=test` }