Fixed that MailHandler raises an error when email has no subject header (#12396).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10850 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-11-18 23:09:45 +00:00
parent f232f56d97
commit a829bfa755
3 changed files with 22 additions and 2 deletions
+9
View File
@@ -395,6 +395,15 @@ class MailHandlerTest < ActiveSupport::TestCase
assert_equal ja, issue.subject
end
def test_add_issue_with_no_subject_header
issue = submit_email(
'no_subject_header.eml',
:issue => {:project => 'ecookbook'}
)
assert_kind_of Issue, issue
assert_equal '(no subject)', issue.subject
end
def test_add_issue_with_mixed_japanese_subject
issue = submit_email(
'subject_japanese_2.eml',