Sha256: eeaf0f4623f3bf01a5b4a26491400d64bea768b968cf3c1b998ded50e3b23586
Contents?: true
Size: 919 Bytes
Versions: 2
Compression:
Stored size: 919 Bytes
Contents
require 'spec_helper' describe Symbiont do let(:watir_browser) { mock_browser_for_watir } let(:selenium_browser) { mock_browser_for_selenium } let(:watir_definition) { DefinitionTest.new(watir_browser) } let(:selenium_definition) { DefinitionTest.new(selenium_browser) } context "a definition using watir-webdriver" do it "should return a watir platform object" do watir_definition.platform.should be_kind_of Symbiont::Platforms::WatirWebDriver::PlatformObject end end context "a definition using selenium-webdriver" do it "should return a selenium platform object" do selenium_definition.platform.should be_kind_of Symbiont::Platforms::SeleniumWebDriver::PlatformObject end end context "an unrecognized browser" do it "should raise an exception" do expect { DefinitionTest.new(:unknown_browser) }.to raise_error end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
symbiont-0.0.2 | spec/symbiont/platform_object_spec.rb |
symbiont-0.0.1 | spec/symbiont/platform_object_spec.rb |