diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-05 12:57:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-05 12:57:19 +0000 |
commit | 967f42aa98f5bf5994504efee142ed8d4f06465a (patch) | |
tree | 4613da3827a33395a8a799667c1d3b94a5d49e44 /test/unit/mailer_test.rb | |
parent | f52f18c2814b0bf71a719e17f2338a43966cfcb8 (diff) | |
download | redmine-967f42aa98f5bf5994504efee142ed8d4f06465a.tar.gz redmine-967f42aa98f5bf5994504efee142ed8d4f06465a.zip |
Adds a X-Redmine-Sender header to email notifications (#5643).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8785 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/mailer_test.rb')
-rw-r--r-- | test/unit/mailer_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb index 042b8c36c..9e32918bf 100644 --- a/test/unit/mailer_test.rb +++ b/test/unit/mailer_test.rb @@ -138,6 +138,14 @@ class MailerTest < ActiveSupport::TestCase assert_equal 'auto-generated', mail.header_string('Auto-Submitted') end + def test_email_headers_should_include_sender + issue = Issue.find(1) + Mailer.deliver_issue_add(issue) + mail = ActionMailer::Base.deliveries.last + assert_not_nil mail + assert_equal issue.author.login, mail.header_string('X-Redmine-Sender') + end + def test_plain_text_mail Setting.plain_text_mail = 1 journal = Journal.find(2) |