@@ -124,6 +124,16 class MailerTest < ActiveSupport::TestCase | |||
|
124 | 124 | assert mail.encoded.include?('href') |
|
125 | 125 | end |
|
126 | 126 | |
|
127 | def test_mail_from_with_phrase | |
|
128 | ActionMailer::Base.deliveries.clear | |
|
129 | with_settings :mail_from => 'Redmine app <redmine@example.net>' do | |
|
130 | Mailer.deliver_test(User.find(1)) | |
|
131 | end | |
|
132 | mail = ActionMailer::Base.deliveries.last | |
|
133 | assert_not_nil mail | |
|
134 | assert_equal 'Redmine app', mail.from_addrs.first.name | |
|
135 | end | |
|
136 | ||
|
127 | 137 | def test_issue_add_message_id |
|
128 | 138 | ActionMailer::Base.deliveries.clear |
|
129 | 139 | issue = Issue.find(1) |
General Comments 0
You need to be logged in to leave comments.
Login now