Fix #4515: Set List-Unsubscribe header on notification emails.

This commit is contained in:
evazion
2022-01-02 16:33:45 -06:00
parent 27ed41437c
commit e40218d1c8
5 changed files with 11 additions and 6 deletions

View File

@@ -10,6 +10,7 @@ class UserMailerTest < ActionMailer::TestCase
should "work" do
@dmail = create(:dmail, owner: @user, to: @user)
mail = UserMailer.dmail_notice(@dmail)
assert_not_nil(mail.header["List-Unsubscribe"])
assert_emails(1) { mail.deliver_now }
end