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'
|
||||
|
||||
desc "runs the test::unit based tests in webrat mode"
|
||||
task :test_unit_webrat do
|
||||
Rake::TestTask.new(:test_unit_webrat => "db:test:prepare") do |t|
|
||||
ENV['WEBRAT_INTEGRATION_MODE'] = 'webrat'
|
||||
Rake::Task['test:integration'].invoke
|
||||
t.libs << "test"
|
||||
t.pattern = 'test/integration/**/*_test.rb'
|
||||
t.verbose = true
|
||||
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"
|
||||
task :test_unit_selenium do
|
||||
Rake::TestTask.new(:test_unit_selenium => "db:test:prepare") do |t|
|
||||
ENV['WEBRAT_INTEGRATION_MODE'] = 'selenium'
|
||||
Rake::Task['test:integration'].invoke
|
||||
t.libs << "test"
|
||||
t.pattern = 'test/integration/**/*_test.rb'
|
||||
t.verbose = true
|
||||
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
|
||||
visit internal_redirect_path
|
||||
assert_contain("OK")
|
||||
assert response_body.include?("OK")
|
||||
end
|
||||
|
||||
test "should not follow external redirects" do
|
||||
|
Loading…
Reference in New Issue
Block a user