summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDavin Taddeo <davin@chef.io>2020-06-11 14:29:54 -0400
committerDavin Taddeo <davin@chef.io>2020-06-11 14:29:54 -0400
commit2b74fefe8ddf38189d9ae04a4030298961658104 (patch)
tree095a6a8f89fb7125430f1fd85507c9a150d119e5 /spec
parent10e3aa1d8b7b3161ce5c886d43af7979e7c7f684 (diff)
parent3889eddfc9944b23caea412d05c08b9b156cb50f (diff)
downloadchef-2b74fefe8ddf38189d9ae04a4030298961658104.tar.gz
Merge branch 'master' of github.com:chef/chef into windows_audit_policy
Diffstat (limited to 'spec')
-rw-r--r--spec/support/shared/unit/execute_resource.rb2
-rw-r--r--spec/unit/resource/timezone_spec.rb2
2 files changed, 2 insertions, 2 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
diff --git a/spec/unit/resource/timezone_spec.rb b/spec/unit/resource/timezone_spec.rb
index 6461ae5d67..da48ab7c16 100644
--- a/spec/unit/resource/timezone_spec.rb
+++ b/spec/unit/resource/timezone_spec.rb
@@ -34,6 +34,6 @@ describe Chef::Resource::Timezone do
it "supports the :set action only" do
expect { resource.action :set }.not_to raise_error
- expect { resource.action :unset }.to raise_error
+ expect { resource.action :unset }.to raise_error(Chef::Exceptions::ValidationFailed)
end
end