summaryrefslogtreecommitdiff
path: root/spec/support/chef_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/chef_helpers.rb')
-rw-r--r--spec/support/chef_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/chef_helpers.rb b/spec/support/chef_helpers.rb
index 88c4524e97..c566ced8b1 100644
--- a/spec/support/chef_helpers.rb
+++ b/spec/support/chef_helpers.rb
@@ -27,7 +27,7 @@ Chef::Log.level(Chef::Config.log_level)
Chef::Config.solo(false)
def sha256_checksum(path)
- OpenSSL::Digest::SHA256.hexdigest(File.read(path))
+ OpenSSL::Digest.hexdigest("SHA256", File.read(path))
end
# extracted from Ruby < 2.5 to return a unique temp file name without creating it