From d490c840df8d2c57440505955d1828d800a62c8b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 3 Apr 2013 23:48:44 -0700 Subject: [PATCH] Tests passing for halt capability change --- test/unit/vagrant/action/builtin/graceful_halt_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/vagrant/action/builtin/graceful_halt_test.rb b/test/unit/vagrant/action/builtin/graceful_halt_test.rb index 244bf2d17..95bf76888 100644 --- a/test/unit/vagrant/action/builtin/graceful_halt_test.rb +++ b/test/unit/vagrant/action/builtin/graceful_halt_test.rb @@ -34,7 +34,7 @@ describe Vagrant::Action::Builtin::GracefulHalt do it "should do nothing if force is specified" do env[:force_halt] = true - machine_guest.should_not_receive(:halt) + machine_guest.should_not_receive(:capability) described_class.new(app, env, target_state).call(env) @@ -43,7 +43,7 @@ describe Vagrant::Action::Builtin::GracefulHalt do it "should do nothing if there is an invalid source state" do machine_state.stub(:id).and_return(:invalid_source) - machine_guest.should_not_receive(:halt) + machine_guest.should_not_receive(:capability) described_class.new(app, env, target_state, :target_source).call(env) @@ -51,7 +51,7 @@ describe Vagrant::Action::Builtin::GracefulHalt do end it "should gracefully halt and wait for the target state" do - machine_guest.should_receive(:halt).once + machine_guest.should_receive(:capability).with(:halt).once machine_state.stub(:id).and_return(target_state) described_class.new(app, env, target_state).call(env)