Sha256: 9fb5af521c562beb23d52e5e76f5819d2d0d935cc3265c6764bcac70686544ec
Contents?: true
Size: 815 Bytes
Versions: 11
Compression:
Stored size: 815 Bytes
Contents
require "spec_helper" describe Webdrivers::IEdriver do let(:iedriver) { Webdrivers::IEdriver } it 'finds latest version' do expect(iedriver.latest).to be > 3.4 expect(iedriver.latest).to be < 4 end it 'downloads iedriver' do iedriver.remove expect(File.exist?(iedriver.download)).to be true end it 'removes iedriver' do iedriver.remove expect(iedriver.current).to be_nil end context 'when offline' do before { allow(iedriver).to receive(:site_available?).and_return(false) } it 'raises exception finding latest version' do expect {iedriver.latest}.to raise_error(StandardError, "Can not reach site") end it 'raises exception downloading' do expect {iedriver.download}.to raise_error(StandardError, "Can not reach site") end end end
Version data entries
11 entries across 11 versions & 1 rubygems