Sha256: a85fe04f55f29060b99d69cb424a48efa1d8b3398b51672887c91d942bb05352
Contents?: true
Size: 489 Bytes
Versions: 41
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
41 entries across 37 versions & 4 rubygems