summaryrefslogtreecommitdiff
path: root/spec/support/artifice/compact_index.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/artifice/compact_index.rb')
-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 64f7dc903a..434307576f 100644
--- a/spec/support/artifice/compact_index.rb
+++ b/spec/support/artifice/compact_index.rb
@@ -15,7 +15,7 @@ class CompactIndexAPI < Endpoint
def etag_response
response_body = yield
- checksum = Digest::MD5.hexdigest(response_body)
+ checksum = Digest(:MD5).hexdigest(response_body)
return if not_modified?(checksum)
headers "ETag" => quote(checksum)
headers "Surrogate-Control" => "max-age=2592000, stale-while-revalidate=60"