30 lines
841 B
Ruby
30 lines
841 B
Ruby
require 'spec_helper'
|
|
|
|
describe Capybara::Session do
|
|
context 'with selenium driver' do
|
|
before do
|
|
@session = TestSessions::Selenium
|
|
end
|
|
|
|
describe '#driver' do
|
|
it "should be a selenium driver" do
|
|
@session.driver.should be_an_instance_of(Capybara::Selenium::Driver)
|
|
end
|
|
end
|
|
|
|
describe '#mode' do
|
|
it "should remember the mode" do
|
|
@session.mode.should == :selenium
|
|
end
|
|
end
|
|
|
|
it_should_behave_like "session"
|
|
it_should_behave_like "session with javascript support"
|
|
it_should_behave_like "session with screenshot support"
|
|
it_should_behave_like "session with frame support"
|
|
it_should_behave_like "session with window support"
|
|
it_should_behave_like "session without headers support"
|
|
it_should_behave_like "session without status code support"
|
|
end
|
|
end
|