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:
parent
8ff36c4933
commit
b8f4230271
2 changed files with 7 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue