Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
commit 0e1f7e0058bc06d9a9356f5b2a1e06447c024f46 1 parent 9c6d480
@spohlenz spohlenz authored josevalim committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 railties/test/application/assets_test.rb
View
8 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
Please sign in to comment.
Something went wrong with that request. Please try again.