FIX: 'List-Unsubscribe' header wasn't added to emails sent when mailing_list_mode was enabled

This commit is contained in:
Régis Hanol
2016-08-01 20:19:00 +02:00
parent 5b270b6b06
commit 829143bf88
2 changed files with 8 additions and 4 deletions

View File

@ -100,6 +100,7 @@ describe UserNotifications do
expect(subject.from).to eq([SiteSetting.notification_email])
expect(subject.html_part.body.to_s).to include topic.title
expect(subject.text_part.body.to_s).to be_present
expect(subject.header["List-Unsubscribe"].to_s).to match(/\/email\/unsubscribe\/\h{64}/)
end
it "includes posts less than 24 hours old" do