diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-04-03 13:19:26 -0400 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-04-03 13:19:26 -0400 |
commit | 76a80918b09f98c884094f82417865b8398373e9 (patch) | |
tree | 9a7a36875ec213d0921447610a5383c203f6103c /railties/lib | |
parent | 999835a8e5a34afb41af54f3cb14562a6c759a04 (diff) | |
download | rails-76a80918b09f98c884094f82417865b8398373e9.tar.gz rails-76a80918b09f98c884094f82417865b8398373e9.tar.bz2 rails-76a80918b09f98c884094f82417865b8398373e9.zip |
check pending migrations against the test db
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/test_unit/testing.rake | 16 |
1 files changed, 1 insertions, 15 deletions
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" |