Update destroy action to use the new destroy syntax for VM

This commit is contained in:
Mitchell Hashimoto 2010-04-08 01:22:51 -07:00
parent d44dd9a4eb
commit 0c5ec7a4c7
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ module Vagrant
def destroy_vm def destroy_vm
logger.info "Destroying VM and associated drives..." logger.info "Destroying VM and associated drives..."
@runner.vm.destroy(:destroy_image => true) @runner.vm.destroy(:destroy_medium => :delete)
end end
def depersist def depersist

View File

@ -22,7 +22,7 @@ class DestroyActionTest < Test::Unit::TestCase
context "destroying the VM" do context "destroying the VM" do
should "destroy VM and attached images" do should "destroy VM and attached images" do
@vm.expects(:destroy).with(:destroy_image => true).once @vm.expects(:destroy).with(:destroy_medium => :delete).once
@action.destroy_vm @action.destroy_vm
end end
end end