Sha256: 2a78f116b8c7ace22ba75ab76291f8ea2ee15c59a4c8d1bfda969b78c0e1653e
Contents?: true
Size: 736 Bytes
Versions: 1
Compression:
Stored size: 736 Bytes
Contents
require 'spec_helper' class PageDefinition include Fluent end describe Fluent do let(:watir_browser) { mock_browser_for_watir } let(:watir_definition) { PageDefinition.new(watir_browser) } context 'a definition using watir-webdriver' do it 'should return a watir platform object' do watir_definition.platform.should be_kind_of Fluent::Platforms::WatirWebDriver::PlatformObject end end context 'a definition using an unrecognized driver' do it 'should raise an exception' do msg = 'Unable to create a platform object for unknown_browser.' expect { PageDefinition.new(:unknown_browser) }.to raise_error(Fluent::Errors::UnableToCreatePlatform, msg) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-0.1.0 | spec/platform_object_spec.rb |