Commit 5d709cd4 authored by Michał "rysiek" Woźniak's avatar Michał "rysiek" Woźniak 🔒

bugfix for tests

parent 23a7b661
Pipeline #33388 passed with stages
in 12 minutes and 59 seconds
......@@ -809,6 +809,7 @@ describe Schleuder::List do
sign: true,
sign_as: '59C71FB38AEE22E091C78259D06350440F759BD3'
}
mail.gpg(gpg_opts)
mail.deliver
......@@ -839,7 +840,6 @@ describe Schleuder::List do
mail.from = 'admin@example.org'
mail.subject = 'Something'
mail.body = "Some content"
mail.gpg()
Schleuder::Runner.new().run(mail, list.email)
messages = Mail::TestMailer.deliveries
......@@ -847,7 +847,7 @@ describe Schleuder::List do
expect(list.deliver_selfsent).to be(false)
expect(messages.size).to be(2)
expect(recipients).to eql(['user1@example.org', 'admin@example.org'])
expect(recipients).to eql(['admin@example.org', 'user1@example.org'])
expect(messages[0].parts.last.body.to_s).to include("-----BEGIN PGP MESSAGE-----")
expect(messages[0].subject).to eql("Something")
......
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