summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-06-11 11:06:12 -0700
committerGitHub <noreply@github.com>2020-06-11 11:06:12 -0700
commitc67ebab8c2984c81ca0ba0a8a0e7468564e51102 (patch)
tree70d45347040ea5533815be88f3b39a4f32a23754 /spec/unit
parent51acaeebcf16ed37a3729a0b1716b8563e99b5f4 (diff)
parente5c8f4687038d5cce89ceb60f024e83d90e445da (diff)
downloadchef-c67ebab8c2984c81ca0ba0a8a0e7468564e51102.tar.gz
Merge pull request #9979 from chef/cleanup-resource-inheritance
Small code cleanups in script/windows_script
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/resource/timezone_spec.rb2
1 files changed, 1 insertions, 1 deletions
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