summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-07-16 19:17:59 -0700
committerTim Smith <tsmith84@gmail.com>2020-07-20 11:45:27 -0700
commit9e5f755e034a32b2d633f81dc72b3b6d0db5af5e (patch)
treea938e9d52e5837a6025a50b43c5dadac9242fcea /spec
parentc30422b6be8f212c2de4a4e612837ae8a017a470 (diff)
downloadchef-9e5f755e034a32b2d633f81dc72b3b6d0db5af5e.tar.gz
Test the default property values
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/resource/macos_user_defaults_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/unit/resource/macos_user_defaults_spec.rb b/spec/unit/resource/macos_user_defaults_spec.rb
index a66ad2cf75..8ab8035580 100644
--- a/spec/unit/resource/macos_user_defaults_spec.rb
+++ b/spec/unit/resource/macos_user_defaults_spec.rb
@@ -25,6 +25,18 @@ describe Chef::Resource::MacosUserDefaults do
expect(resource.resource_name).to eql(:macos_userdefaults)
end
+ it "the domain property defaults to NSGlobalDomain" do
+ expect(resource.domain).to eql("NSGlobalDomain")
+ end
+
+ it "the host property defaults to nil" do
+ expect(resource.host).to be_nil
+ end
+
+ it "the sudo property defaults to false" do
+ expect(resource.sudo).to be false
+ end
+
it "sets the default action as :write" do
expect(resource.action).to eql([:write])
end