diff options
author | Tim Smith <tsmith@chef.io> | 2018-07-31 16:57:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-31 16:57:10 -0700 |
commit | ba486abf84f0d40ed5d484fd1803ecfdc8f33da6 (patch) | |
tree | 25433b05ec446792ef36e298a0b00285b98753f6 /spec | |
parent | a42e1169b26559c19d6048351362da64093352af (diff) | |
parent | abf0deee9c83b468d5d01b321dff9d7d9cbb7b92 (diff) | |
download | chef-ba486abf84f0d40ed5d484fd1803ecfdc8f33da6.tar.gz |
Merge pull request #7514 from MsysTechnologiesllc/vasundhara/MSYS-872_Fix_for_registry_key_resource_does_not_recongnize_keys_when_passed_as_attribute
Fix for registry_key resource doesn't recognise keys when passed as attribute.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/resource/registry_key_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/resource/registry_key_spec.rb b/spec/unit/resource/registry_key_spec.rb index 147bc8492c..47d624a758 100644 --- a/spec/unit/resource/registry_key_spec.rb +++ b/spec/unit/resource/registry_key_spec.rb @@ -133,6 +133,10 @@ describe Chef::Resource::RegistryKey, "values" do expect { resource.values([ { name: "123", type: :string, data: "carmen" } ]) }.to_not raise_error end end + + it "does not raise an exception if keys are in string format" do + expect { resource.values([ { "name" => "123", "type" => :string, "data" => "carmen" } ]) }.to_not raise_error + end end describe Chef::Resource::RegistryKey, "recursive" do |