diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-05-20 15:54:29 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-05-20 15:54:29 -0700 |
commit | 77d955c51740216131fc0b130d5cb37fcd18d071 (patch) | |
tree | 657cde6046e88a7d16254f228aa40e3a28b412a8 /actionpack | |
parent | 01f032f256f96f65e154061b582fbb4b32e4a692 (diff) | |
download | rails-77d955c51740216131fc0b130d5cb37fcd18d071.tar.gz rails-77d955c51740216131fc0b130d5cb37fcd18d071.tar.bz2 rails-77d955c51740216131fc0b130d5cb37fcd18d071.zip |
Added passing old tests on new base to the main test runner
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/Rakefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/actionpack/Rakefile b/actionpack/Rakefile index 6ce8179646..f1f407c008 100644 --- a/actionpack/Rakefile +++ b/actionpack/Rakefile @@ -22,7 +22,7 @@ task :default => [ :test ] # Run the unit tests desc "Run all unit tests" -task :test => [:test_action_pack, :test_active_record_integration, :test_new_base] +task :test => [:test_action_pack, :test_active_record_integration, :test_new_base, :test_new_base_on_old_tests] Rake::TestTask.new(:test_action_pack) do |t| t.libs << "test" @@ -55,6 +55,17 @@ Rake::TestTask.new(:test_new_base) do |t| t.verbose = true end +desc 'Old Controller Tests on New Base' +Rake::TestTask.new(:test_new_base_on_old_tests) do |t| + ENV['new_base'] = "true" + t.libs << "test" + # content_type mime_responds layout + t.test_files = %w( + addresses_render base benchmark caching capture dispatcher record_identifier + redirect render rescue url_rewriter webservice + ).map { |name| "test/controller/#{name}_test.rb" } +end + # Genereate the RDoc documentation |