Skip to content

Commit

Permalink
Make "rake test" display not only task name but also exception message.
Browse files Browse the repository at this point in the history
  • Loading branch information
ihower committed Jun 29, 2011
1 parent 3153685 commit 89ad062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions railties/lib/rails/test_unit/testing.rake
Expand Up @@ -79,10 +79,10 @@ task :test do
Rake::Task[task].invoke
nil
rescue => e
task
{ :task => task, :exception => e }
end
end.compact
abort "Errors running #{errors * ', '}!" if errors.any?
abort errors.map { |e| "Errors running #{e[:task]}! #{e[:exception].inspect}" }.join("\n") if errors.any?
end

namespace :test do
Expand Down

0 comments on commit 89ad062

Please sign in to comment.