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:
commit
b2063f2a7a
1 changed files with 4 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue