Permalink
Browse files

Remove deprecated `test:all` and `test:all:db` tasks

  • Loading branch information...
rafaelfranca committed Jan 4, 2015
1 parent c564dcb commit f663132eef0e5d96bf2a58cec9f7c856db20be7c
Showing with 2 additions and 23 deletions.
  1. +2 −0 railties/CHANGELOG.md
  2. +0 −23 railties/lib/rails/test_unit/testing.rake
View
@@ -1,3 +1,5 @@
* Remove deprecated `test:all` and `test:all:db` tasks.
* Remove deprecated `Rails::Rack::LogTailer`.
*Rafael Mendonça França*
@@ -21,29 +21,6 @@ namespace :test do
desc "Run tests quickly, but also reset db"
task :db => %w[db:test:prepare test]
desc "Run tests quickly by merging all types and not resetting db"
Rails::TestTask.new(:all) do |t|
t.pattern = "test/**/*_test.rb"
end
Rake::Task["test:all"].enhance do
Rake::Task["test:deprecate_all"].invoke
end
task :deprecate_all do
ActiveSupport::Deprecation.warn "rake test:all is deprecated and will be removed in Rails 5. " \
"Use rake test to run all tests in test directory."
end
namespace :all do
desc "Run tests quickly, but also reset db"
task :db => %w[db:test:prepare test:all]
Rake::Task["test:all:db"].enhance do
Rake::Task["test:deprecate_all"].invoke
end
end
Rails::TestTask.new(single: "test:prepare")
["models", "helpers", "controllers", "mailers", "integration", "jobs"].each do |name|

0 comments on commit f663132

Please sign in to comment.