Permalink
Browse files

Tighten up asset precompile tests

  • Loading branch information...
1 parent 7758298 commit 1dc2ea8f3dfc1cce1958bd661c641ed345adf910 @jeremy jeremy committed Oct 13, 2012
Showing with 3 additions and 4 deletions.
  1. +2 −3 railties/test/application/asset_debugging_test.rb
  2. +1 −1 railties/test/application/assets_test.rb
@@ -36,9 +36,8 @@ def teardown
test "assets are concatenated when debug is off and compile is off either if debug_assets param is provided" do
# config.assets.debug and config.assets.compile are false for production environment
ENV["RAILS_ENV"] = "production"
- capture(:stdout) do
- Dir.chdir(app_path){ `bundle exec rake assets:precompile` }
- end
+ output = Dir.chdir(app_path){ `bundle exec rake assets:precompile --trace 2>&1` }
+ assert $?.success?, output
require "#{app_path}/config/environment"
class ::PostsController < ActionController::Base ; end
@@ -18,7 +18,7 @@ def teardown
def precompile!(env = nil)
quietly do
- precompile_task = "bundle exec rake assets:precompile #{env} 2>&1"
+ precompile_task = "bundle exec rake assets:precompile #{env} --trace 2>&1"
output = Dir.chdir(app_path) { %x[ #{precompile_task} ] }
assert $?.success?, output
output

0 comments on commit 1dc2ea8

Please sign in to comment.