diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-11-16 06:48:46 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-11-16 06:48:46 +0000 |
commit | 70bcbd1404ae4bf406f2cafa6745c6309bd4c61e (patch) | |
tree | f83bc8be8b3048ceba3c0948312e1fb88615aaf3 | |
parent | 9f6cf296d1853a4efc909f069ffeb938eb4a9360 (diff) | |
download | redmine-70bcbd1404ae4bf406f2cafa6745c6309bd4c61e.tar.gz redmine-70bcbd1404ae4bf406f2cafa6745c6309bd4c61e.zip |
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
-rw-r--r-- | test/unit/mail_handler_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb index ba1f3ebb4..ab208196b 100644 --- a/test/unit/mail_handler_test.rb +++ b/test/unit/mail_handler_test.rb @@ -378,8 +378,10 @@ class MailHandlerTest < ActiveSupport::TestCase 'subject_as_iso-8859-1.eml', :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_equal 'Testmail from Webmail: ä ö ü...', issue.subject + assert_equal str, issue.subject end def test_add_issue_with_japanese_subject |