Commit 63698de4 authored by georg's avatar georg

Merge branch 'specs-drop-duplicated-test-case' into 'master'

specs: Drop duplicated test case

See merge request schleuder/schleuder!125
parents 4824dbdb 3403f011
......@@ -52,19 +52,6 @@ describe Schleuder::LoggerNotifications do
expect(message.parts.first.parts.last.body.to_s).to eql("anotherthing")
end
it "notifies admins of multiple text-messages" do
list = create(:list, send_encrypted_only: false)
list.subscribe("schleuder@example.org", nil, true)
list.logger.notify_admin(["Something", "anotherthing"], nil, I18n.t('notice'))
message = Mail::TestMailer.deliveries.first
expect(message.to).to eql(['schleuder@example.org'])
expect(message.subject).to eql(I18n.t('notice'))
expect(message.parts.first.parts.first.body.to_s).to eql("Something")
expect(message.parts.first.parts.last.body.to_s).to eql("anotherthing")
end
it "notifies admins of multiple text-messages and the original message" do
list = create(:list, send_encrypted_only: false)
list.subscribe("schleuder@example.org", nil, true)
......
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