about summary refs log tree commit diff
path: root/spec/lib/activitypub/linked_data_signature_spec.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-02-03 18:57:38 +0100
committerGitHub <noreply@github.com>2021-02-03 18:57:38 +0100
commit4ed9576cd28abc033a094fed6babe9825014f1af (patch)
treed6d5e7b07e24248da5c237726dca874727c10b38 /spec/lib/activitypub/linked_data_signature_spec.rb
parent7632255115a7f6e6f9f8047f0d0d1b90d7ee9315 (diff)
parente1fa06c459a28a575d0da540432c61b702e99cdd (diff)
Merge pull request #1496 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'spec/lib/activitypub/linked_data_signature_spec.rb')
-rw-r--r--spec/lib/activitypub/linked_data_signature_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/activitypub/linked_data_signature_spec.rb b/spec/lib/activitypub/linked_data_signature_spec.rb
index 1f413eec9..2222c46fb 100644
--- a/spec/lib/activitypub/linked_data_signature_spec.rb
+++ b/spec/lib/activitypub/linked_data_signature_spec.rb
@@ -81,6 +81,6 @@ RSpec.describe ActivityPub::LinkedDataSignature do
     options_hash   = Digest::SHA256.hexdigest(canonicalize(options.merge('@context' => ActivityPub::LinkedDataSignature::CONTEXT)))
     document_hash  = Digest::SHA256.hexdigest(canonicalize(document))
     to_be_verified = options_hash + document_hash
-    Base64.strict_encode64(from_account.keypair.sign(OpenSSL::Digest::SHA256.new, to_be_verified))
+    Base64.strict_encode64(from_account.keypair.sign(OpenSSL::Digest.new('SHA256'), to_be_verified))
   end
 end