summaryrefslogtreecommitdiffstats
path: root/test/unit/mailer_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-10-13 07:58:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-10-13 07:58:33 +0000
commit176ce785740c5b65cc0b674789c669a76fdd8124 (patch)
treeb9c2cd536000d2e9a71a565c00a8918197f9528c /test/unit/mailer_test.rb
parentc6c0491ad893082ed44599f54048b13545a7b731 (diff)
downloadredmine-176ce785740c5b65cc0b674789c669a76fdd8124.tar.gz
redmine-176ce785740c5b65cc0b674789c669a76fdd8124.zip
Fixed that the mail method should return a Mail::Message (#15113).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12210 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/mailer_test.rb')
-rw-r--r--test/unit/mailer_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb
index a2f371632..138611bc1 100644
--- a/test/unit/mailer_test.rb
+++ b/test/unit/mailer_test.rb
@@ -725,6 +725,10 @@ class MailerTest < ActiveSupport::TestCase
end
end
+ def test_mail_should_return_a_mail_message
+ assert_kind_of ::Mail::Message, Mailer.test_email(User.find(1))
+ end
+
private
def last_email