diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-06-09 18:21:38 -0700 |
---|---|---|
committer | Pete Higgins <pete@peterhiggins.org> | 2020-06-10 11:16:52 -0700 |
commit | e8014eebc430188ef86327bcba70b0f7a8f877f4 (patch) | |
tree | b644f3cb1314a26a900a3ad6434d6d6bc7051e94 | |
parent | c820d48e7d574571b041af6b9422aecc24692559 (diff) | |
download | chef-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.rb | 2 |
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 |