spec/beaker/hypervisor/docker_spec.rb in beaker-2.13.0 vs spec/beaker/hypervisor/docker_spec.rb in beaker-2.14.0

- old
+ new

@@ -57,17 +57,19 @@ container end let (:docker) { ::Beaker::Docker.new( hosts, options ) } let(:docker_options) { nil } + let (:version) { {"ApiVersion"=>"1.18", "Arch"=>"amd64", "GitCommit"=>"4749651", "GoVersion"=>"go1.4.2", "KernelVersion"=>"3.16.0-37-generic", "Os"=>"linux", "Version"=>"1.6.0"} } before :each do # Stub out all of the docker-api gem. we should never really call it # from these tests allow_any_instance_of( ::Beaker::Docker ).to receive(:require).with('docker') allow( ::Docker ).to receive(:options).and_return(docker_options) allow( ::Docker ).to receive(:options=) allow( ::Docker ).to receive(:logger=) + allow( ::Docker ).to receive(:version).and_return(version) allow( ::Docker::Image ).to receive(:build).and_return(image) allow( ::Docker::Container ).to receive(:create).and_return(container) allow_any_instance_of( ::Docker::Container ).to receive(:start) end