aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authorSam Pohlenz <sam@sampohlenz.com>2011-10-03 16:05:05 +1030
committerJosé Valim <jose.valim@gmail.com>2011-10-03 11:18:44 +0200
commit0e1f7e0058bc06d9a9356f5b2a1e06447c024f46 (patch)
treeccb853401a5ac52fa7256edbc0271eade57f6fa7 /railties/test/application
parent9c6d4801d1a2ef026feb2d122b7b10930d617476 (diff)
downloadrails-0e1f7e0058bc06d9a9356f5b2a1e06447c024f46.tar.gz
rails-0e1f7e0058bc06d9a9356f5b2a1e06447c024f46.tar.bz2
rails-0e1f7e0058bc06d9a9356f5b2a1e06447c024f46.zip
Replace calls to capture(:stdout) with quietly in assets tests
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/assets_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb
index ba59d3faa7..d0713620bd 100644
--- a/railties/test/application/assets_test.rb
+++ b/railties/test/application/assets_test.rb
@@ -22,7 +22,7 @@ module ApplicationTests
end
def precompile!
- capture(:stdout) do
+ quietly do
Dir.chdir(app_path){ `bundle exec rake assets:precompile` }
end
end
@@ -249,7 +249,7 @@ module ApplicationTests
# 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 @@ module ApplicationTests
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 @@ module ApplicationTests
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