diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-07-21 16:43:11 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-07-21 16:43:11 -0700 |
commit | 5b148d997d081473b6b4f7533778c771768a575c (patch) | |
tree | 66d0ce384536d7745c64e0f7543974094c1f6a2e /spec | |
parent | e16679a1197d52f93fd373931873b9e8bfbd98fa (diff) | |
download | chef-5b148d997d081473b6b4f7533778c771768a575c.tar.gz |
Make sure we can compare keys in dicts
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/resource/macos_user_defaults_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/resource/macos_user_defaults_spec.rb b/spec/unit/resource/macos_user_defaults_spec.rb index f0d1aa6a53..490a938230 100644 --- a/spec/unit/resource/macos_user_defaults_spec.rb +++ b/spec/unit/resource/macos_user_defaults_spec.rb @@ -30,6 +30,11 @@ describe Chef::Resource::MacosUserDefaults do expect(resource.domain).to eql("NSGlobalDomain") end + it "the value property coerces keys in hashes to symbols so we can compare them with plist data" do + resource.value "User": "/Library/Managed Installs/way_fake.log" + expect(resource.value).to eq({ "User" => "/Library/Managed Installs/way_fake.log" }) + end + it "the host property defaults to nil" do expect(resource.host).to be_nil end |