Sha256: 3b590e0280f60010b9edb1f5d1f471e3f9867d811033e00ef23fe9fe30524321

Contents?: true

Size: 489 Bytes

Versions: 1

Compression:

Stored size: 489 Bytes

Contents

# frozen_string_literal: true

Capybara::SpecHelper.spec '#title' do
  it "should get the title of the page" do
    @session.visit('/with_title')
    expect(@session.title).to eq('Test Title')
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capybara-3.0.0.rc1 lib/capybara/spec/session/title_spec.rb