Adds a test for emission address with phrase (#4855).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3443 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3dd9687d41
commit
b733accfe3
|
@ -124,6 +124,16 @@ class MailerTest < ActiveSupport::TestCase
|
||||||
assert mail.encoded.include?('href')
|
assert mail.encoded.include?('href')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_mail_from_with_phrase
|
||||||
|
ActionMailer::Base.deliveries.clear
|
||||||
|
with_settings :mail_from => 'Redmine app <redmine@example.net>' do
|
||||||
|
Mailer.deliver_test(User.find(1))
|
||||||
|
end
|
||||||
|
mail = ActionMailer::Base.deliveries.last
|
||||||
|
assert_not_nil mail
|
||||||
|
assert_equal 'Redmine app', mail.from_addrs.first.name
|
||||||
|
end
|
||||||
|
|
||||||
def test_issue_add_message_id
|
def test_issue_add_message_id
|
||||||
ActionMailer::Base.deliveries.clear
|
ActionMailer::Base.deliveries.clear
|
||||||
issue = Issue.find(1)
|
issue = Issue.find(1)
|
||||||
|
|
Loading…
Reference in New Issue