diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-09-11 05:19:15 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-09-11 05:19:15 +0000 |
commit | d54a1564a1f70351fc23649641a92617e7f55c9d (patch) | |
tree | d583d89b1a91bc56dcc980c1acf02cc275047d6c /railties | |
parent | ea0975a20b0752bfbfcafe8eefd98f7fe9bcd386 (diff) | |
download | rails-d54a1564a1f70351fc23649641a92617e7f55c9d.tar.gz rails-d54a1564a1f70351fc23649641a92617e7f55c9d.tar.bz2 rails-d54a1564a1f70351fc23649641a92617e7f55c9d.zip |
Don't raise superfluous exception on test failure.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7455 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/tasks/testing.rake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/railties/lib/tasks/testing.rake b/railties/lib/tasks/testing.rake index b9df35c6b4..e60f961347 100644 --- a/railties/lib/tasks/testing.rake +++ b/railties/lib/tasks/testing.rake @@ -40,17 +40,17 @@ end desc 'Test all units and functionals' task :test do - exceptions = ["test:units", "test:functionals", "test:integration"].collect do |task| + %w(test:units test:functionals test:integration).collect do |task| begin Rake::Task[task].invoke nil rescue => e - e + e unless e.message.starts_with?('Command failed with status (1)') end - end.compact - - exceptions.each {|e| puts e;puts e.backtrace } - raise "Test failures" unless exceptions.empty? + end.compact.each do |e| + puts e + puts " #{e.backtrace * " \n"}" + end end namespace :test do |