Fix tests to get passing for new `vagrant destroy` command
This commit is contained in:
parent
4149313e7a
commit
90d2ec5ab3
|
@ -52,19 +52,19 @@ class CommandsTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context "down" do
|
context "destroy" do
|
||||||
setup do
|
setup do
|
||||||
@persisted_vm.stubs(:destroy)
|
@persisted_vm.stubs(:destroy)
|
||||||
end
|
end
|
||||||
|
|
||||||
should "require a persisted VM" do
|
should "require a persisted VM" do
|
||||||
@env.expects(:require_persisted_vm).once
|
@env.expects(:require_persisted_vm).once
|
||||||
@commands.down
|
@commands.destroy
|
||||||
end
|
end
|
||||||
|
|
||||||
should "destroy the persisted VM and the VM image" do
|
should "destroy the persisted VM and the VM image" do
|
||||||
@persisted_vm.expects(:destroy).once
|
@persisted_vm.expects(:destroy).once
|
||||||
@commands.down
|
@commands.destroy
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue