VM halting uses new VM#stop

This commit is contained in:
Mitchell Hashimoto 2010-04-08 01:47:57 -07:00
parent 2271a41940
commit 745aadd1a5
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ module Vagrant
raise ActionException.new(:vm_not_running) unless @runner.vm.running?
logger.info "Forcing shutdown of VM..."
@runner.vm.stop(true)
@runner.vm.stop
end
end
end

View File

@ -12,7 +12,7 @@ class HaltActionTest < Test::Unit::TestCase
end
should "force the VM to stop" do
@vm.expects(:stop).with(true).once
@vm.expects(:stop).once
@action.execute!
end