From 803269f7291719715011c5c76d66e20101f7af50 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 24 Feb 2013 18:00:01 -0800 Subject: [PATCH] Test to make sure hooks return the action runner result --- test/unit/vagrant/environment_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/unit/vagrant/environment_test.rb b/test/unit/vagrant/environment_test.rb index ed0614eb5..252dc04b3 100644 --- a/test/unit/vagrant/environment_test.rb +++ b/test/unit/vagrant/environment_test.rb @@ -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