From a1ef306838f52f47902317ca23ebf108cbe15fa3 Mon Sep 17 00:00:00 2001 From: Amos King Date: Fri, 23 Jan 2009 16:13:43 -0600 Subject: [PATCH] update Rakefile to run test_units with the new test task --- Rakefile | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/Rakefile b/Rakefile index 317b58f..ca63278 100644 --- a/Rakefile +++ b/Rakefile @@ -109,17 +109,21 @@ namespace :spec do namespace :integration do desc "Run the Rails integration specs" - task :rails do - Dir.chdir "spec/integration/rails" do - result = system "rake test_unit_webrat" - raise "Rails integration tests failed" unless result + task :rails => ['rails:webrat','rails:selenium'] + + namespace :rails do + task :selenium do + Dir.chdir "spec/integration/rails" do + result = system "rake test_unit:selenium" + raise "Rails integration tests failed" unless result + end end - end - - task :rails_selenium do - Dir.chdir "spec/integration/rails" do - result = system "rake test_unit_selenium" - raise "Rails integration tests failed" unless result + + task :webrat do + Dir.chdir "spec/integration/rails" do + result = system "rake test_unit:rails" + raise "Rails integration tests failed" unless result + end end end