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:
Jean-Philippe Lang 2010-02-17 19:08:04 +00:00
parent 3dd9687d41
commit b733accfe3
1 changed files with 10 additions and 0 deletions

View File

@ -123,6 +123,16 @@ class MailerTest < ActiveSupport::TestCase
assert_equal 2, mail.parts.size
assert mail.encoded.include?('href')
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
ActionMailer::Base.deliveries.clear