Sha256: befea852e2905468546a0bf15137c22b54ff791f7e206273b811026e9e2c4192

Contents?: true

Size: 564 Bytes

Versions: 4

Compression:

Stored size: 564 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"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
capybara-0.1.3 spec/session/rack_test_session_spec.rb
capybara-0.1.2 spec/session/rack_test_session_spec.rb
capybara-0.1.1 spec/session/rack_test_session_spec.rb
capybara-0.1 spec/session/rack_test_session_spec.rb