Fix tests to get passing for new `vagrant destroy` command

This commit is contained in:
Mitchell Hashimoto 2010-04-10 16:45:46 -07:00
parent 4149313e7a
commit 90d2ec5ab3
1 changed files with 3 additions and 3 deletions

View File

@ -52,19 +52,19 @@ class CommandsTest < Test::Unit::TestCase
end
end
context "down" do
context "destroy" do
setup do
@persisted_vm.stubs(:destroy)
end
should "require a persisted VM" do
@env.expects(:require_persisted_vm).once
@commands.down
@commands.destroy
end
should "destroy the persisted VM and the VM image" do
@persisted_vm.expects(:destroy).once
@commands.down
@commands.destroy
end
end