Sha256: b9c4338b3b7f8e2ef5aea5140188604ccfdd8ff62fd6f3aa7838a44fc0337291

Contents?: true

Size: 617 Bytes

Versions: 2

Compression:

Stored size: 617 Bytes

Contents

require File.expand_path('../spec_helper', File.dirname(__FILE__))

describe Capybara::Session do
  context 'with rack test driver' do
    before do
      @session = Capybara::Session.new(:rack_test, TestApp)
    end

    describe '#driver' do
      it "should be a rack test driver" do
        @session.driver.should be_an_instance_of(Capybara::Driver::RackTest)
      end
    end

    describe '#mode' do
      it "should remember the mode" do
        @session.mode.should == :rack_test
      end
    end

    it_should_behave_like "session"
    it_should_behave_like "session without javascript support"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capybara-0.2.0 spec/session/rack_test_session_spec.rb
capybara-0.1.4 spec/session/rack_test_session_spec.rb