capture was commented out

This commit is contained in:
Santiago Pastorino 2011-10-02 13:52:29 -02:00
parent 753424079e
commit 9b34e31155

@ -249,9 +249,9 @@ class ::PostsController < ActionController::Base ; end
# 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