Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rake assets:precompile shouldn't fail quietly.

We should show to user original issue if rake task will be aborted.
  • Loading branch information...
commit 551066633d83939b1077eef38c3e2d449b230849 1 parent be8685d
Dmitry Vorotilin route authored
Showing with 4 additions and 7 deletions.
  1. +4 −7 railties/test/application/assets_test.rb
11 railties/test/application/assets_test.rb
View
@@ -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.