mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
5b72525a96
This originally worked with a timeout. Jonas fixed it so that it follows 5 redirects, but the infinite redirect error was not raised.
19 lines
612 B
Ruby
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
|