From 745aadd1a5824c3914776bd0b891631589ad60e4 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 8 Apr 2010 01:47:57 -0700 Subject: [PATCH] VM halting uses new VM#stop --- lib/vagrant/actions/vm/halt.rb | 2 +- test/vagrant/actions/vm/halt_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/actions/vm/halt.rb b/lib/vagrant/actions/vm/halt.rb index acfdfa7b7..a05fed612 100644 --- a/lib/vagrant/actions/vm/halt.rb +++ b/lib/vagrant/actions/vm/halt.rb @@ -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 diff --git a/test/vagrant/actions/vm/halt_test.rb b/test/vagrant/actions/vm/halt_test.rb index 313c3f53c..74c5e6501 100644 --- a/test/vagrant/actions/vm/halt_test.rb +++ b/test/vagrant/actions/vm/halt_test.rb @@ -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