teamcapybara--capybara/spec/session/selenium_session_spec.rb

26 lines
674 B
Ruby
Raw Normal View History

require File.expand_path('../spec_helper', File.dirname(__FILE__))
2009-11-16 21:02:16 +00:00
describe Capybara::Session do
context 'with selenium driver' do
before do
2009-11-16 21:02:16 +00:00
@session = Capybara::Session.new(:selenium, TestApp)
end
describe '#driver' do
it "should be a selenium driver" do
2009-11-16 21:02:16 +00:00
@session.driver.should be_an_instance_of(Capybara::Driver::Selenium)
end
end
describe '#mode' do
it "should remember the mode" do
@session.mode.should == :selenium
end
end
2010-02-15 13:54:11 +00:00
# it_should_behave_like "session"
it_should_behave_like "session with javascript support"
2010-02-15 13:54:11 +00:00
# it_should_behave_like "session without headers support"
end
end