Sha256: e43d046fc00fb492f23f37b4c03cba3848b839e91a28c68154dd1327861796e5

Contents?: true

Size: 452 Bytes

Versions: 7

Compression:

Stored size: 452 Bytes

Contents

Capybara::SpecHelper.spec '#title' do

  it "should print the title of the page" do
    @session.visit('/with_title')
    @session.title.should == 'Test Title'
  end

  context "with css as default selector" do
    before { Capybara.default_selector = :css }
    it "should print the title of the page" do
      @session.visit('/with_title')
      @session.title.should == 'Test Title'
    end
    after { Capybara.default_selector = :xpath }
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
capybara-2.2.1 lib/capybara/spec/session/title_spec.rb
capybara-2.2.0 lib/capybara/spec/session/title_spec.rb
capybara-2.2.0.rc1 lib/capybara/spec/session/title_spec.rb
swipe-rails-0.0.5 vendor/bundle/gems/capybara-2.1.0/lib/capybara/spec/session/title_spec.rb
capybara-2.1.0 lib/capybara/spec/session/title_spec.rb
capybara-2.1.0.rc1 lib/capybara/spec/session/title_spec.rb
capybara-2.1.0.beta1 lib/capybara/spec/session/title_spec.rb