update Rakefile to run test_units with the new test task

This commit is contained in:
Amos King 2009-01-23 16:13:43 -06:00
parent 8c0facc5af
commit a1ef306838
1 changed files with 14 additions and 10 deletions

View File

@ -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
end
end
task :rails => ['rails:webrat','rails:selenium']
task :rails_selenium do
Dir.chdir "spec/integration/rails" do
result = system "rake test_unit_selenium"
raise "Rails integration tests failed" unless result
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
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