mirror of
https://github.com/redmine/redmine.git
synced 2026-05-05 21:47:03 +02:00
add test of receiving mail subject begins with encoding name (#12375)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10811 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -382,6 +382,17 @@ class MailHandlerTest < ActiveSupport::TestCase
|
||||
assert_equal 'Testmail from Webmail: ä ö ü...', issue.subject
|
||||
end
|
||||
|
||||
def test_add_issue_with_japanese_subject
|
||||
issue = submit_email(
|
||||
'subject_japanese_1.eml',
|
||||
:issue => {:project => 'ecookbook'}
|
||||
)
|
||||
assert_kind_of Issue, issue
|
||||
ja = "\xe3\x83\x86\xe3\x82\xb9\xe3\x83\x88"
|
||||
ja.force_encoding('UTF-8') if ja.respond_to?(:force_encoding)
|
||||
assert_equal ja, issue.subject
|
||||
end
|
||||
|
||||
def test_should_ignore_emails_from_locked_users
|
||||
User.find(2).lock!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user