Test to make sure hooks return the action runner result

This commit is contained in:
Mitchell Hashimoto 2013-02-24 18:00:01 -08:00
parent 499d1ff8bf
commit 803269f729
1 changed files with 6 additions and 0 deletions

View File

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