broke selenium mode tests out into a seperate file.
This commit is contained in:
parent
c1b49f36ea
commit
c0220232c7
@ -9,14 +9,18 @@ require 'rake/rdoctask'
|
|||||||
|
|
||||||
require 'tasks/rails'
|
require 'tasks/rails'
|
||||||
|
|
||||||
desc "runs the test::unit based tests in webrat mode"
|
Rake::TestTask.new(:test_unit_webrat => "db:test:prepare") do |t|
|
||||||
task :test_unit_webrat do
|
|
||||||
ENV['WEBRAT_INTEGRATION_MODE'] = 'webrat'
|
ENV['WEBRAT_INTEGRATION_MODE'] = 'webrat'
|
||||||
Rake::Task['test:integration'].invoke
|
t.libs << "test"
|
||||||
|
t.pattern = 'test/integration/**/*_test.rb'
|
||||||
|
t.verbose = true
|
||||||
end
|
end
|
||||||
|
Rake::Task['test_unit_webrat'].comment = "runs the test::unit based tests in webrat mode"
|
||||||
|
|
||||||
desc "runs the test::unit based tests in selenium mode"
|
Rake::TestTask.new(:test_unit_selenium => "db:test:prepare") do |t|
|
||||||
task :test_unit_selenium do
|
|
||||||
ENV['WEBRAT_INTEGRATION_MODE'] = 'selenium'
|
ENV['WEBRAT_INTEGRATION_MODE'] = 'selenium'
|
||||||
Rake::Task['test:integration'].invoke
|
t.libs << "test"
|
||||||
|
t.pattern = 'test/integration/**/*_test.rb'
|
||||||
|
t.verbose = true
|
||||||
end
|
end
|
||||||
|
Rake::Task['test_unit_selenium'].comment = "runs the test::unit based tests in selenium mode"
|
@ -16,7 +16,7 @@ class WebratTest < ActionController::IntegrationTest
|
|||||||
|
|
||||||
test "should follow internal redirects" do
|
test "should follow internal redirects" do
|
||||||
visit internal_redirect_path
|
visit internal_redirect_path
|
||||||
assert_contain("OK")
|
assert response_body.include?("OK")
|
||||||
end
|
end
|
||||||
|
|
||||||
test "should not follow external redirects" do
|
test "should not follow external redirects" do
|
||||||
|
Loading…
Reference in New Issue
Block a user