summaryrefslogtreecommitdiff
path: root/spec/support/shared/unit/windows_script_resource.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/shared/unit/windows_script_resource.rb')
-rw-r--r--spec/support/shared/unit/windows_script_resource.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/shared/unit/windows_script_resource.rb b/spec/support/shared/unit/windows_script_resource.rb
index 4a2f755952..2961b378e3 100644
--- a/spec/support/shared/unit/windows_script_resource.rb
+++ b/spec/support/shared/unit/windows_script_resource.rb
@@ -35,7 +35,7 @@ shared_examples_for "a Windows script resource" do
end
it "should use a resource to evaluate the guard when guard_interpreter is not specified" do
- expect_any_instance_of(Chef::GuardInterpreter::ResourceGuardInterpreter).to receive(:evaluate_action).and_return(true)
+ expect_any_instance_of(Chef::GuardInterpreter::ResourceGuardInterpreter).to receive(:evaluate).and_return(true)
expect_any_instance_of(Chef::GuardInterpreter::DefaultGuardInterpreter).not_to receive(:evaluate)
windows_script_resource.only_if "echo hi"
expect(windows_script_resource.should_skip?(:run)).to eq(nil)