diff options
author | Vasu1105 <vasundhara.jagdale@msystechnologies.com> | 2018-07-31 15:09:40 +0530 |
---|---|---|
committer | Vasu1105 <vasundhara.jagdale@msystechnologies.com> | 2018-07-31 15:09:40 +0530 |
commit | abf0deee9c83b468d5d01b321dff9d7d9cbb7b92 (patch) | |
tree | b8ae3532a8e8f748f554e9611634c5fb052248cd /spec | |
parent | 94a4b1c304c0175940a1e6cfca8043fa3ce0a97c (diff) | |
download | chef-abf0deee9c83b468d5d01b321dff9d7d9cbb7b92.tar.gz |
MSYS-872 Fix for registry key resource doesn't recognise keys when passed as attribute
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
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 |