aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/tasks/misc.rake
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/tasks/misc.rake')
-rw-r--r--railties/lib/tasks/misc.rake6
1 files changed, 5 insertions, 1 deletions
diff --git a/railties/lib/tasks/misc.rake b/railties/lib/tasks/misc.rake
index 713f622547..60dc2e21d2 100644
--- a/railties/lib/tasks/misc.rake
+++ b/railties/lib/tasks/misc.rake
@@ -1,5 +1,9 @@
desc "Run all the tests on a fresh test database"
-task :default => [ :test_units, :test_functional ]
+task :default do
+ Rake::Task[:test_units].invoke rescue got_error = true
+ Rake::Task[:test_functional].invoke rescue got_error = true
+ raise "Test failures" if got_error
+end
task :environment do
require(File.join(RAILS_ROOT, 'config', 'environment'))