Skip to content

Commit

Permalink
Test to make sure hooks return the action runner result
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Feb 25, 2013
1 parent 499d1ff commit 803269f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/unit/vagrant/environment_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,12 @@

instance.hook(hook_name)
end

it "should return the result of the action runner run" do
instance.action_runner.should_receive(:run).and_return(:foo)

instance.hook(:bar).should == :foo
end
end

describe "primary machine name" do
Expand Down

0 comments on commit 803269f

Please sign in to comment.