Fix unit tests

This commit is contained in:
Mitchell Hashimoto 2014-10-22 08:39:59 -07:00
parent 9d4ab18f42
commit 82f806f438
1 changed files with 7 additions and 2 deletions

View File

@ -140,7 +140,12 @@ describe VagrantPlugins::DockerProvider::Driver do
it 'stops the container' do
subject.should_receive(:execute).with('docker', 'stop', '-t', '1', cid)
subject.stop(cid)
subject.stop(cid, 1)
end
it "stops the container with the set timeout" do
subject.should_receive(:execute).with('docker', 'stop', '-t', '5', cid)
subject.stop(cid, 5)
end
end
@ -149,7 +154,7 @@ describe VagrantPlugins::DockerProvider::Driver do
it 'does not stop container' do
subject.should_not_receive(:execute).with('docker', 'stop', '-t', '1', cid)
subject.stop(cid)
subject.stop(cid, 1)
end
end
end