update Rakefile to run test_units with the new test task
This commit is contained in:
parent
8c0facc5af
commit
a1ef306838
12
Rakefile
12
Rakefile
@ -109,19 +109,23 @@ namespace :spec do
|
|||||||
|
|
||||||
namespace :integration do
|
namespace :integration do
|
||||||
desc "Run the Rails integration specs"
|
desc "Run the Rails integration specs"
|
||||||
task :rails do
|
task :rails => ['rails:webrat','rails:selenium']
|
||||||
|
|
||||||
|
namespace :rails do
|
||||||
|
task :selenium do
|
||||||
Dir.chdir "spec/integration/rails" do
|
Dir.chdir "spec/integration/rails" do
|
||||||
result = system "rake test_unit_webrat"
|
result = system "rake test_unit:selenium"
|
||||||
raise "Rails integration tests failed" unless result
|
raise "Rails integration tests failed" unless result
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
task :rails_selenium do
|
task :webrat do
|
||||||
Dir.chdir "spec/integration/rails" do
|
Dir.chdir "spec/integration/rails" do
|
||||||
result = system "rake test_unit_selenium"
|
result = system "rake test_unit:rails"
|
||||||
raise "Rails integration tests failed" unless result
|
raise "Rails integration tests failed" unless result
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
desc "Run the Merb integration specs"
|
desc "Run the Merb integration specs"
|
||||||
task :merb do
|
task :merb do
|
||||||
|
Loading…
Reference in New Issue
Block a user