Sha256: 998274dfceff5a4da4f98e19309f75308dcaf3b1f9e073e05d12d4ed06f18b1e

Contents?: true

Size: 670 Bytes

Versions: 8

Compression:

Stored size: 670 Bytes

Contents

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::Driver::Selenium)
      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 without headers support"
    it_should_behave_like "session without status code support"
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
capybara-0.4.1.2 spec/session/selenium_session_spec.rb
capybara-rails-2-2-0.4.1.1 spec/session/selenium_session_spec.rb
rcarvalho-capybara-0.4.1.2 spec/session/selenium_session_spec.rb
rcarvalho-capybara-0.4.1.1 spec/session/selenium_session_spec.rb
capybara-0.4.1.1 spec/session/selenium_session_spec.rb
capybara-0.4.1.rc spec/session/selenium_session_spec.rb
capybara-0.4.0 spec/session/selenium_session_spec.rb
capybara-0.4.0.rc spec/session/selenium_session_spec.rb