Sha256: 9cf0d4f6f61d526cb0d687a595102a73ae79366ee7680bbfcdd67067bb47374a
Contents?: true
Size: 462 Bytes
Versions: 13
Compression:
Stored size: 462 Bytes
Contents
Capybara::SpecHelper.spec '#title' do it "should print 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 print 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
13 entries across 13 versions & 4 rubygems