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

making sure deliver_selfsent is set on the list in testing

parent e9467011
Pipeline #31522 failed with stages
in 12 minutes and 51 seconds
......@@ -758,6 +758,7 @@ describe Schleuder::List do
messages = Mail::TestMailer.deliveries
recipients = messages.map { |m| m.to.first }.sort
expect(list.deliver_selfsent).to be(true)
expect(messages.size).to be(3)
expect(recipients).to eql(['admin@example.org', 'user1@example.org', 'user2@example.org'])
expect(messages[0].parts.first.parts.last.body.to_s).to eql("Some content")
......@@ -785,6 +786,7 @@ describe Schleuder::List do
messages = Mail::TestMailer.deliveries
recipients = messages.map { |m| m.to.first }.sort
expect(list.deliver_selfsent).to be(false)
expect(messages.size).to be(2)
expect(recipients).to eql(['admin@example.org', 'user2@example.org'])
expect(messages[0].parts.first.parts.last.body.to_s).to eql("Some content")
......
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