Verified Commit a79f89cb authored by georg's avatar georg
Browse files

specs: Relax expected hash function, fails on Debian otherwise

Relates #261
Relates !172
parent 3bb171d1
......@@ -1694,7 +1694,7 @@ describe "user sends keyword" do
raw = Mail::TestMailer.deliveries.first
message = Mail.create_message_to_list(raw.to_s, list.email, list).setup
expect(message.to_s.gsub("\r", '')).to match(/BEGIN PGP SIGNED MESSAGE-----\nHash: SHA256\n\n#{signed_text}-----BEGIN PGP SIGNATURE/)
expect(message.to_s.gsub("\r", '')).to match(/BEGIN PGP SIGNED MESSAGE-----\nHash: SHA(256|512)\n\n#{signed_text}-----BEGIN PGP SIGNATURE/)
teardown_list_and_mailer(list)
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment