1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/spec/driver/rack_test_driver_spec.rb
Myron Marston 5b72525a96 Detect infinite redirection (i.e. more than 5 redirects).
This originally worked with a timeout. Jonas fixed it so that it follows 5 redirects, but the infinite redirect error was not raised.
2010-06-29 14:11:24 -07:00

19 lines
612 B
Ruby

require File.expand_path('../spec_helper', File.dirname(__FILE__))
describe Capybara::Driver::RackTest do
before do
@driver = Capybara::Driver::RackTest.new(TestApp)
end
it "should throw an error when no rack app is given" do
running do
Capybara::Driver::RackTest.new(nil)
end.should raise_error(ArgumentError)
end
it_should_behave_like "driver"
it_should_behave_like "driver with header support"
it_should_behave_like "driver with status code support"
it_should_behave_like "driver with cookies support"
it_should_behave_like "driver with infinite redirect detection"
end