require 'spec_helper' describe Capybara::Session do context 'with akephalos driver' do before do @session = Capybara::Session.new(:akephalos, TestApp) end describe '#driver' do it "should be a headless driver" do @session.driver.should be_an_instance_of(Capybara::Driver::Akephalos) end end describe '#mode' do it "should remember the mode" do @session.mode.should == :akephalos end end it_should_behave_like "session" it_should_behave_like "session with javascript support" end end