mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
23 lines
558 B
Ruby
23 lines
558 B
Ruby
require File.expand_path('../spec_helper', File.dirname(__FILE__))
|
|
|
|
describe Webcat::Session do
|
|
context 'with rack test driver' do
|
|
before do
|
|
@session = Webcat::Session.new(:rack_test, TestApp)
|
|
end
|
|
|
|
describe '#driver' do
|
|
it "should be a rack test driver" do
|
|
@session.driver.should be_an_instance_of(Webcat::Driver::RackTest)
|
|
end
|
|
end
|
|
|
|
describe '#mode' do
|
|
it "should remember the mode" do
|
|
@session.mode.should == :rack_test
|
|
end
|
|
end
|
|
|
|
it_should_behave_like "session"
|
|
end
|
|
end
|