Sha256: f4faf52fb8e6808476d58162dd2ded9d2efbc1564536f3c4de50d2f6e4edfb4e
Contents?: true
Size: 854 Bytes
Versions: 5
Compression:
Stored size: 854 Bytes
Contents
require 'spec_helper' describe PageObject::Platforms::Selenium do it "should be registered as an adapter" do PageObject::Platforms.get[:selenium].should be PageObject::Platforms::Selenium end describe 'create page object' do let(:browser) { double('browser') } let(:subject) { PageObject::Platforms::Selenium.create_page_object(browser) } it "should create a SeleniumPageObject" do subject.should be_kind_of PageObject::Platforms::Selenium::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::Selenium.is_for?(browser).should == true end it "should be false when the browser is anything else" do PageObject::Platforms::Selenium.is_for?("asdf").should == false end end end
Version data entries
5 entries across 5 versions & 1 rubygems