1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

Rake assets:precompile shouldn't fail quietly.
This commit is contained in:
Rafael Mendonça França 2012-09-10 14:15:09 -07:00
commit b2063f2a7a

View file

@ -19,13 +19,10 @@ module ApplicationTests
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