Commit b733accf authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

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
parent 3dd9687d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment