Commit 1b04a081 authored by ng's avatar ng
Browse files

Merge branch '261-specs-relax-expected-hash-function' into 'master'

specs: Relax expected hash function, fails on Debian otherwise

See merge request schleuder/schleuder!194
parents 3bb171d1 a79f89cb
......@@ -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