Sha256: 91b92a0f9558189018a3228a07cfc24064c58ca79402d84463bb31de419ed8c0
Contents?: true
Size: 931 Bytes
Versions: 57
Compression:
Stored size: 931 Bytes
Contents
require 'spec_helper' describe PageObject::Platforms::SeleniumWebDriver do it "should be registered as an adapter" do PageObject::Platforms.get[:selenium_webdriver].should be PageObject::Platforms::SeleniumWebDriver end describe 'create page object' do let(:browser) { double('browser') } let(:subject) { PageObject::Platforms::SeleniumWebDriver.create_page_object(browser) } it "should create a SeleniumPageObject" do subject.should be_kind_of PageObject::Platforms::SeleniumWebDriver::PageObject end end describe "is for?" do it "should be true when the browser is a selenium driver" do browser = mock_selenium_browser() PageObject::Platforms::SeleniumWebDriver.is_for?(browser).should == true end it "should be false when the browser is anything else" do PageObject::Platforms::SeleniumWebDriver.is_for?("asdf").should == false end end end
Version data entries
57 entries across 57 versions & 2 rubygems