Test to make sure hooks return the action runner result
This commit is contained in:
parent
499d1ff8bf
commit
803269f729
|
@ -215,6 +215,12 @@ describe Vagrant::Environment do
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue