spec/beaker/hypervisor/docker_spec.rb in beaker-2.35.0 vs spec/beaker/hypervisor/docker_spec.rb in beaker-2.36.0
- old
+ new
@@ -91,9 +91,11 @@
require 'excon'
allow( ::Docker ).to receive(:validate_version!).and_raise(Excon::Errors::SocketError.new( StandardError.new('oops') ))
end
it 'should fail when docker not present' do
expect { docker }.to raise_error(RuntimeError, /Docker instance not connectable./)
+ expect { docker }.to raise_error(RuntimeError, /Check your DOCKER_HOST variable has been set/)
+ expect { docker }.to raise_error(RuntimeError, /If you are on OSX or Windows, you might not have Docker Machine setup correctly/)
expect { docker }.to raise_error(RuntimeError, /Error was: oops/)
end
end
describe '#initialize' do