Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #7586 from route/precompile-should-not-fail-quietly

Rake assets:precompile shouldn't fail quietly.
  • Loading branch information...
commit b2063f2a7aef211bed5d2014ec655b272739287f 2 parents 416884c + 5510666
@rafaelfranca rafaelfranca authored
Showing with 4 additions and 7 deletions.
  1. +4 −7 railties/test/application/assets_test.rb
View
11 railties/test/application/assets_test.rb
@@ -19,13 +19,10 @@ def teardown
def precompile!(env = nil)
quietly do
- precompile_task = 'bundle exec rake assets:precompile'
- precompile_task += ' ' + env if env
- out = Dir.chdir(app_path){ %x[ #{precompile_task} ] }
- assert $?.exitstatus == 0,
- "#{precompile_task} has failed: #{out}.\
- Probably you didn't install JavaScript runtime."
- return out
+ precompile_task = "bundle exec rake assets:precompile #{env} 2>&1"
+ output = Dir.chdir(app_path) { %x[ #{precompile_task} ] }
+ assert $?.success?, output
+ output
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.