GitLab steht Mittwoch, den 08. Juli, zwischen 09:00 und 13:00 Uhr aufgrund von Wartungsarbeiten nicht zur Verfügung.

Commit 68203481 authored by maeda's avatar maeda

Test that List-Id header field does not include display name and extra angle brackets (#14792).

Patch by Go MAEDA.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 16292659
...@@ -198,11 +198,14 @@ class MailerTest < ActiveSupport::TestCase ...@@ -198,11 +198,14 @@ class MailerTest < ActiveSupport::TestCase
end end
def test_email_headers def test_email_headers
issue = Issue.find(1) with_settings :mail_from => 'Redmine <>' do
Mailer.deliver_issue_add(issue) issue = Issue.find(1)
mail = last_email mail = last_email
assert_equal 'All', mail.header['X-Auto-Response-Suppress'].to_s assert_equal 'All', mail.header['X-Auto-Response-Suppress'].to_s
assert_equal 'auto-generated', mail.header['Auto-Submitted'].to_s assert_equal 'auto-generated', mail.header['Auto-Submitted'].to_s
# List-Id should not include the display name "Redmine"
assert_equal '<>', mail.header['List-Id'].to_s assert_equal '<>', mail.header['List-Id'].to_s
end end
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment