From 9b34e311556fd51f01fda9e5f237969c200125a2 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Sun, 2 Oct 2011 13:52:29 -0200 Subject: capture was commented out --- railties/test/application/assets_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/test/application') diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb index 7bace25fef..01fe8eeafd 100644 --- a/railties/test/application/assets_test.rb +++ b/railties/test/application/assets_test.rb @@ -249,9 +249,9 @@ module ApplicationTests # digest is default in false, we must enable it for test environment add_to_config "config.assets.digest = true" - # capture(:stdout) do + capture(:stdout) do Dir.chdir(app_path){ `bundle exec rake assets:precompile RAILS_ENV=test` } - # end + end file = Dir["#{app_path}/public/assets/application-*.css"].first assert_match(/\/assets\/rails-([0-z]+)\.png/, File.read(file)) end -- cgit v1.2.3