Permalink
Browse files

Replace calls to capture(:stdout) with quietly in assets tests

  • Loading branch information...
1 parent 41cbd15 commit 29c2fc3643b7576ed6ac18e8b0ea15dc5adee52c @spohlenz spohlenz committed Oct 3, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 railties/test/application/assets_test.rb
@@ -22,7 +22,7 @@ def app
end
def precompile!
- capture(:stdout) do
+ quietly do
Dir.chdir(app_path){ `bundle exec rake assets:precompile` }
end
end
@@ -249,7 +249,7 @@ 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
+ quietly do
Dir.chdir(app_path){ `bundle exec rake assets:precompile RAILS_ENV=test` }
end
file = Dir["#{app_path}/public/assets/application.css"].first
@@ -281,7 +281,7 @@ class ::PostsController < ActionController::Base ; end
add_to_config "config.assets.compile = true"
ENV["RAILS_ENV"] = nil
- capture(:stdout) do
+ quietly do
Dir.chdir(app_path){ `bundle exec rake assets:precompile RAILS_GROUPS=assets` }
end
file = Dir["#{app_path}/public/assets/application-*.css"].first
@@ -306,7 +306,7 @@ class ::PostsController < ActionController::Base ; end
app_file "public/assets/application.css", "a { color: green; }"
app_file "public/assets/subdir/broken.png", "not really an image file"
- capture(:stdout) do
+ quietly do
Dir.chdir(app_path){ `bundle exec rake assets:clean` }
end

0 comments on commit 29c2fc3

Please sign in to comment.