breaking the test mode out into a specific test modes
This commit is contained in:
parent
7fa51ab8c4
commit
a8a63472bc
2
Rakefile
2
Rakefile
|
@ -111,7 +111,7 @@ namespace :spec do
|
|||
desc "Run the Rails integration specs"
|
||||
task :rails do
|
||||
Dir.chdir "spec/integration/rails" do
|
||||
result = system "rake test:integration"
|
||||
result = system "rake test_unit_webrat"
|
||||
raise "Rails integration tests failed" unless result
|
||||
end
|
||||
end
|
||||
|
|
|
@ -8,3 +8,15 @@ require 'rake/testtask'
|
|||
require 'rake/rdoctask'
|
||||
|
||||
require 'tasks/rails'
|
||||
|
||||
desc "runs the test::unit based tests in webrat mode"
|
||||
task :test_unit_webrat do
|
||||
ENV['WEBRAT_INTEGRATION_MODE'] = 'webrat'
|
||||
Rake::Task['test:integration'].invoke
|
||||
end
|
||||
|
||||
desc "runs the test::unit based tests in selenium mode"
|
||||
task :test_unit_webrat do
|
||||
ENV['WEBRAT_INTEGRATION_MODE'] = 'selenium'
|
||||
Rake::Task['test:integration'].invoke
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue