Commit 6e1730f4 authored by Michał "rysiek" Woźniak's avatar Michał "rysiek" Woźniak 🔒

tests bugfix

parent a9e278d3
Pipeline #33381 passed with stages
in 21 minutes and 39 seconds
......@@ -802,7 +802,7 @@ describe Schleuder::List do
sub, msgs = list.subscribe("user1@example.org", nil, false, true, key_material)
mail = Mail.new
mail.to = list.email
mail.from = 'user1@example.org'
mail.from = 'admin@example.org'
mail.subject = 'Something'
mail.body = "Some content"
gpg_opts = {
......@@ -822,7 +822,7 @@ describe Schleuder::List do
expect(list.deliver_selfsent).to be(false)
expect(messages.size).to be(1)
expect(recipients).to eql(['admin@example.org'])
expect(recipients).to eql(['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