summaryrefslogtreecommitdiff
path: root/chef/spec/unit/checksum_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chef/spec/unit/checksum_spec.rb')
-rw-r--r--chef/spec/unit/checksum_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/spec/unit/checksum_spec.rb b/chef/spec/unit/checksum_spec.rb
index d2740dae64..c8b405194f 100644
--- a/chef/spec/unit/checksum_spec.rb
+++ b/chef/spec/unit/checksum_spec.rb
@@ -92,7 +92,7 @@ describe Chef::Checksum do
describe "when converted to json" do
before do
@checksum_as_json = @checksum.to_json
- @checksum_as_hash_from_json = JSON.parse(@checksum_as_json, :create_additions => false)
+ @checksum_as_hash_from_json = Chef::JSON.from_json(@checksum_as_json, :create_additions => false)
end
it "contains the file's MD5 checksum" do