Skip to content

Commit

Permalink
Add a spec for handling connection info from a box
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljb committed Dec 30, 2014
1 parent bbca64e commit 72010a0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions spec/action_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 72010a0

Please sign in to comment.