From 76a80918b09f98c884094f82417865b8398373e9 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 3 Apr 2013 13:19:26 -0400 Subject: check pending migrations against the test db --- railties/lib/rails/test_unit/testing.rake | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/test_unit/testing.rake b/railties/lib/rails/test_unit/testing.rake index a66cfd1487..4f55f2f866 100644 --- a/railties/lib/rails/test_unit/testing.rake +++ b/railties/lib/rails/test_unit/testing.rake @@ -64,21 +64,7 @@ namespace :test do # Placeholder task for other Railtie and plugins to enhance. See Active Record for an example. end - task :run do - errors = %w(test:units test:functionals test:integration).collect do |task| - begin - Rake::Task[task].invoke - nil - rescue => e - { task: task, exception: e } - end - end.compact - - if errors.any? - puts errors.map { |e| "Errors running #{e[:task]}! #{e[:exception].inspect}" }.join("\n") - abort - end - end + task :run => ['test:units', 'test:functionals', 'test:integration'] # Inspired by: http://ngauthier.com/2012/02/quick-tests-with-bash.html desc "Run tests quickly by merging all types and not resetting db" -- cgit v1.2.3