Sha256: 7cc1f7af405bfa7995ac7d15c766cd918d24e45f33e4ca76dc9c94f05844ad5b
Contents?: true
Size: 729 Bytes
Versions: 11
Compression:
Stored size: 729 Bytes
Contents
#encoding: utf-8 require File.expand_path 'app/spec/spec_helper' describe 'The Yale home page', :yale do before(:all) do @browser = Watir::Browser.sauce_start($caps) @yale_page = YalePage.new(@browser) @yale_page.goto end it 'has the correct title' do expect(@yale_page.title).to eq 'Yale University' end it 'has the correct text' do expect(@yale_page.text).to include 'Harvard' end it 'has the correct links' describe 'The Yale search', :yale do term = "stuff" it "has the correct results for '#{term}'" do result_page = @yale_page.search_for term expect(result_page.term_found?(term)).to eq true end end after(:all) do @browser.close rescue nil end end
Version data entries
11 entries across 11 versions & 1 rubygems