spec/beaker/hypervisor/docker_spec.rb in beaker-3.17.0 vs spec/beaker/hypervisor/docker_spec.rb in beaker-3.18.0
- old
+ new
@@ -63,11 +63,11 @@
},
],
},
},
})
- allow( container ).to receive(:stop)
+ allow( container ).to receive(:kill)
allow( container ).to receive(:delete)
allow( container ).to receive(:exec)
container
end
@@ -336,10 +336,10 @@
docker.provision
end
it 'should stop the containers' do
allow( docker ).to receive( :sleep ).and_return(true)
- expect( container ).to receive(:stop)
+ expect( container ).to receive(:kill)
docker.cleanup
end
it 'should delete the containers' do
allow( docker ).to receive( :sleep ).and_return(true)