From 6b23ee2970f152bc79061aaf027056e015886a23 Mon Sep 17 00:00:00 2001 From: Paul Engel Date: Sat, 5 Feb 2011 12:21:11 +0100 Subject: [PATCH] Added 'rake test:integration:rails-2' and 'rake test:integration:rails-3' Also restoring the dummy app before running the tests --- Rakefile | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/Rakefile b/Rakefile index a5727a9..a05d356 100644 --- a/Rakefile +++ b/Rakefile @@ -53,12 +53,24 @@ namespace :test do end desc "Run all integration tests (non-authenticated, with Devise, with Authlogic) in Rails 2 and 3." task :integration do - system "ruby test/rails-2/rich_cms/app/integration/non_authenticated.rb" - system "ruby test/rails-2/rich_cms/app/integration/authenticated/devise_test.rb" - system "ruby test/rails-2/rich_cms/app/integration/authenticated/authlogic.rb" - system "ruby test/rails-3/rich_cms/app/integration/non_authenticated.rb" - system "ruby test/rails-3/rich_cms/app/integration/authenticated/devise_test.rb" - system "ruby test/rails-3/rich_cms/app/integration/authenticated/authlogic.rb" + system "rake test:integration:rails-2" + system "rake test:integration:rails-3" + end + namespace :integration do + desc "Run all integration tests (non-authenticated, with Devise, with Authlogic) in Rails 2." + task :"rails-2" do + system "rake restore:rails-2" + %w(non_authenticated authenticated/devise_test authenticated/authlogic).each do |file| + system "ruby test/rails-2/rich_cms/app/integration/#{file}.rb" + end + end + desc "Run all integration tests (non-authenticated, with Devise, with Authlogic) in Rails 3." + task :"rails-3" do + system "rake restore:rails-3" + %w(non_authenticated authenticated/devise_test authenticated/authlogic).each do |file| + system "ruby test/rails-3/rich_cms/app/integration/#{file}.rb" + end + end end end