diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-04-05 12:33:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-04-05 12:33:45 +0000 |
commit | 66839c12dddd886bb828c6fe64da6ab0c195661b (patch) | |
tree | e43114d4f7f95192d5abfe9101802b7cffc2dacb /test/unit | |
parent | ca166b30e1b223c7f3aba3befc894a8597362592 (diff) | |
download | redmine-66839c12dddd886bb828c6fe64da6ab0c195661b.tar.gz redmine-66839c12dddd886bb828c6fe64da6ab0c195661b.zip |
Replaces List-Id header with Precedence and Auto-Submitted headers (#2984, #2879).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2655 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/mailer_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb index e3eb65ae4..d15af6e03 100644 --- a/test/unit/mailer_test.rb +++ b/test/unit/mailer_test.rb @@ -87,6 +87,16 @@ class MailerTest < Test::Unit::TestCase # restore it Redmine::Utils.relative_url_root = relative_url_root end + + def test_email_headers + ActionMailer::Base.deliveries.clear + issue = Issue.find(1) + Mailer.deliver_issue_add(issue) + mail = ActionMailer::Base.deliveries.last + assert_not_nil mail + assert_equal 'bulk', mail.header_string('Precedence') + assert_equal 'auto-generated', mail.header_string('Auto-Submitted') + end def test_plain_text_mail Setting.plain_text_mail = 1 |