1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Fail early when no rack application is set.

This commit is contained in:
Jonas Nicklas 2010-05-26 16:37:14 +02:00
parent 8ff36c4933
commit b8f4230271
2 changed files with 7 additions and 0 deletions

View file

@ -4,6 +4,12 @@ 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"