aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorWen-Tien Chang <ihower@gmail.com>2011-06-29 17:15:55 +0800
committerWen-Tien Chang <ihower@gmail.com>2011-06-29 17:15:55 +0800
commit89ad0629e04eeb130b70ac289da343d04a9615f5 (patch)
tree02152f7aef0f8d28d7d73a00d18e216d50d9fc74 /railties
parent31536855ae90bf2fb07c855d05837246b5aa6fb9 (diff)
downloadrails-89ad0629e04eeb130b70ac289da343d04a9615f5.tar.gz
rails-89ad0629e04eeb130b70ac289da343d04a9615f5.tar.bz2
rails-89ad0629e04eeb130b70ac289da343d04a9615f5.zip
Make "rake test" display not only task name but also exception message.
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/test_unit/testing.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/test_unit/testing.rake b/railties/lib/rails/test_unit/testing.rake
index 28dc40379b..f86af7d061 100644
--- a/railties/lib/rails/test_unit/testing.rake
+++ b/railties/lib/rails/test_unit/testing.rake
@@ -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