summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-06-09 18:21:38 -0700
committerPete Higgins <pete@peterhiggins.org>2020-06-10 11:16:52 -0700
commite8014eebc430188ef86327bcba70b0f7a8f877f4 (patch)
treeb644f3cb1314a26a900a3ad6434d6d6bc7051e94
parentc820d48e7d574571b041af6b9422aecc24692559 (diff)
downloadchef-e8014eebc430188ef86327bcba70b0f7a8f877f4.tar.gz
Fix a test to avoid rspec warning.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
-rw-r--r--spec/support/shared/unit/execute_resource.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/shared/unit/execute_resource.rb b/spec/support/shared/unit/execute_resource.rb
index ffefa8d63a..bec3a047c0 100644
--- a/spec/support/shared/unit/execute_resource.rb
+++ b/spec/support/shared/unit/execute_resource.rb
@@ -75,7 +75,7 @@ shared_examples_for "an execute resource" do
end
it "the old path property (that never worked) is not supported in chef >= 13" do
- expect { @resource.path [ "woot" ] }.to raise_error
+ expect(@resource).not_to respond_to(:path)
end
it "should accept an integer for the return code" do