Sha256: 6807eee70ecf5974a15a1038943d74fdd4e36c0473ad845b171007f5c192503b
Contents?: true
Size: 931 Bytes
Versions: 5
Compression:
Stored size: 931 Bytes
Contents
require 'spec_helper' describe PageObject::Platforms::Watir do it "should be in the PageObjects Adapters list" do PageObject::Platforms.get[:watir].should be PageObject::Platforms::Watir end describe "create page object" do let(:browser) { double('browser') } let(:subject) { PageObject::Platforms::Watir.create_page_object(browser) } it "should create a WatirPageObject" do subject.should be_kind_of PageObject::WatirPageObject end it "should give the watir page object the browser" do subject.browser.should be browser end end describe "is for?" do it "should be true when the browser is Watir::Browser" do browser = mock_watir_browser() PageObject::Platforms::Watir.is_for?(browser).should be true end it "should be false at any other point" do browser = 'asdf' PageObject::Platforms::Watir.is_for?('asdf').should be false end end end
Version data entries
5 entries across 5 versions & 1 rubygems