diff --git a/spec/action_spec.rb b/spec/action_spec.rb index 738d8407..8f545082 100644 --- a/spec/action_spec.rb +++ b/spec/action_spec.rb @@ -5,7 +5,7 @@ def run(action) Vagrant::Action::Runner.new.run described_class.send("action_#{action}"), @env end - + before :each do @machine.stub(:id).and_return(EXISTING_UUID) end @@ -71,7 +71,7 @@ def run_destroy describe 'halt' do it 'should power off the VM' do @machine.state.stub(:id).and_return(:running) - + VagrantPlugins::VSphere::Action::PowerOff.any_instance.should_receive(:call) run :halt @@ -94,6 +94,12 @@ def run_get_state run_get_state end + + it 'should handle the values in a base vagrant box' do + Vagrant::Action::Builtin::HandleBox.any_instance.should_receive(:call) + + run_get_state + end end describe 'get ssh info' do