summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorColby Swandale <colby@taplaboratories.com>2017-10-09 22:54:45 +1100
committerColby Swandale <colby@taplaboratories.com>2017-10-14 09:40:25 +1100
commit957447cdda34d088081b446618b911be9fa4dc1e (patch)
tree06a285a9d9f0c8b2e53fb0cd050f53257154ad20 /spec/support
parent4a53b530dd05e6288157e644e0ef30869e23dee3 (diff)
downloadbundler-957447cdda34d088081b446618b911be9fa4dc1e.tar.gz
Load Digest::SHA2 using Digest()colby/flaky-test
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/artifice/compact_index.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/artifice/compact_index.rb b/spec/support/artifice/compact_index.rb
index bfb6cfd7f0..64f7dc903a 100644
--- a/spec/support/artifice/compact_index.rb
+++ b/spec/support/artifice/compact_index.rb
@@ -82,7 +82,7 @@ class CompactIndexAPI < Endpoint
CompactIndex::Dependency.new(d.name, reqs)
end
checksum = begin
- Digest::SHA256.file("#{GEM_REPO}/gems/#{spec.original_name}.gem").base64digest
+ Digest(:SHA256).file("#{GEM_REPO}/gems/#{spec.original_name}.gem").base64digest
rescue
nil
end