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
2010-06-07 11:45:09 +10:00

18 lines
499 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 response code support"
end