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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user