summaryrefslogtreecommitdiff
path: root/spec/unit/guard_interpreter
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/guard_interpreter')
-rw-r--r--spec/unit/guard_interpreter/resource_guard_interpreter_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/guard_interpreter/resource_guard_interpreter_spec.rb b/spec/unit/guard_interpreter/resource_guard_interpreter_spec.rb
index a122ac5515..9089177e18 100644
--- a/spec/unit/guard_interpreter/resource_guard_interpreter_spec.rb
+++ b/spec/unit/guard_interpreter/resource_guard_interpreter_spec.rb
@@ -31,8 +31,8 @@ describe Chef::GuardInterpreter::ResourceGuardInterpreter do
let(:resource) do
resource = Chef::Resource.new("powershell_unit_test", run_context)
- resource.stub(:run_action)
- resource.stub(:updated).and_return(true)
+ allow(resource).to receive(:run_action)
+ allow(resource).to receive(:updated).and_return(true)
resource
end