Tests passing for halt capability change

This commit is contained in:
Mitchell Hashimoto 2013-04-03 23:48:44 -07:00
parent 067f431ee9
commit d490c840df
1 changed files with 3 additions and 3 deletions

View File

@ -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)