replace non ASCII characters to hexadecimals at unit mail handler test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10814 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
9f6cf296d1
commit
70bcbd1404
@ -378,8 +378,10 @@ class MailHandlerTest < ActiveSupport::TestCase
|
|||||||
'subject_as_iso-8859-1.eml',
|
'subject_as_iso-8859-1.eml',
|
||||||
:issue => {:project => 'ecookbook'}
|
:issue => {:project => 'ecookbook'}
|
||||||
)
|
)
|
||||||
|
str = "Testmail from Webmail: \xc3\xa4 \xc3\xb6 \xc3\xbc..."
|
||||||
|
str.force_encoding('UTF-8') if str.respond_to?(:force_encoding)
|
||||||
assert_kind_of Issue, issue
|
assert_kind_of Issue, issue
|
||||||
assert_equal 'Testmail from Webmail: ä ö ü...', issue.subject
|
assert_equal str, issue.subject
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_add_issue_with_japanese_subject
|
def test_add_issue_with_japanese_subject
|
||||||
|
Loading…
x
Reference in New Issue
Block a user