Sha256: d606a9ff4c4232b608eb490856abe0d71ae17d55dbc501d4b4f15a296ff104b7
Contents?: true
Size: 561 Bytes
Versions: 10
Compression:
Stored size: 561 Bytes
Contents
require 'spec_helper' module MediawikiSelenium describe BrowserFactory do describe '.new' do context 'given a browser that has a specific implementation' do subject { BrowserFactory.new(:firefox) } it 'instantiates the concrete factory class' do expect(subject).to be_a(BrowserFactory::Firefox) end end context 'given a browser that has no specific implementation' do subject { BrowserFactory.new(:lynx) } it { is_expected.to be_a(BrowserFactory::Base) } end end end end
Version data entries
10 entries across 10 versions & 1 rubygems