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

24 lines
561 B
Ruby
Raw Normal View History

require File.expand_path('../spec_helper', File.dirname(__FILE__))
2009-11-16 16:02:16 -05:00
describe Capybara::Session do
context 'with culerity driver' do
before do
2009-11-16 16:02:16 -05:00
@session = Capybara::Session.new(:culerity, TestApp)
end
describe '#driver' do
it "should be a rack test driver" do
2009-11-16 16:02:16 -05:00
@session.driver.should be_an_instance_of(Capybara::Driver::Culerity)
end
end
describe '#mode' do
it "should remember the mode" do
@session.mode.should == :culerity
end
end
it_should_behave_like "session"
end
end