summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-09-22 10:37:28 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-10-24 20:25:12 -0700
commit3fea6de7368c26335b7446e9898459776723fcab (patch)
treec6b834c7f6f2d7900647dc0e54d03182e6c294a4 /spec/unit
parent4e3bd3fc3ef8795f41f77083380a69edb4056652 (diff)
downloadchef-3fea6de7368c26335b7446e9898459776723fcab.tar.gz
Use SHA256 instead for registry_key when data is not displayable
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/resource/registry_key_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/resource/registry_key_spec.rb b/spec/unit/resource/registry_key_spec.rb
index 2e2811d026..2d82f1a51c 100644
--- a/spec/unit/resource/registry_key_spec.rb
+++ b/spec/unit/resource/registry_key_spec.rb
@@ -91,7 +91,7 @@ describe Chef::Resource::RegistryKey, "values" do
it "should return checksummed data if the type is unsafe" do
@resource.values( { :name => 'poosh', :type => :binary, :data => 255.chr * 1 })
- expect(@resource.values).to eql([ { :name => 'poosh', :type => :binary, :data => "00594fd4f42ba43fc1ca0427a0576295" } ])
+ expect(@resource.values).to eql([ { :name => 'poosh', :type => :binary, :data => 'a8100ae6aa1940d0b663bb31cd466142ebbdbd5187131b92d93818987832eb89' } ])
end
it "should throw an exception if the name field is missing" do
@@ -194,6 +194,6 @@ describe Chef::Resource::RegistryKey, "state" do
it "should return scrubbed values" do
@resource.values([ { :name => 'poosh', :type => :binary, :data => 255.chr * 1 } ])
- expect(@resource.state).to eql( { :values => [{ :name => 'poosh', :type => :binary, :data => "00594fd4f42ba43fc1ca0427a0576295" }] } )
+ expect(@resource.state).to eql( { :values => [{ :name => 'poosh', :type => :binary, :data => 'a8100ae6aa1940d0b663bb31cd466142ebbdbd5187131b92d93818987832eb89'}] } )
end
end