diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-05 14:46:37 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-05 14:46:37 +0000 |
commit | c3c1d4c7ecc0909981ecee47813e069ec87d547a (patch) | |
tree | b4b1e3404aa89151d811d45085c753d776b9a5cf /test | |
parent | 93a0daa383755e5c1100ba8bf826461a2bc0df72 (diff) | |
download | redmine-c3c1d4c7ecc0909981ecee47813e069ec87d547a.tar.gz redmine-c3c1d4c7ecc0909981ecee47813e069ec87d547a.zip |
replace hard-coded Japanese literal to utf-8 hexadecimal at test/unit/mail_handler_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8518 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-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 a9e45d104..1466dd2b2 100644 --- a/test/unit/mail_handler_test.rb +++ b/test/unit/mail_handler_test.rb @@ -284,7 +284,9 @@ class MailHandlerTest < ActiveSupport::TestCase end def test_add_issue_with_japanese_keywords - tracker = Tracker.create!(:name => '開発') + ja_dev = "\xe9\x96\x8b\xe7\x99\xba" + ja_dev.force_encoding('UTF-8') if ja_dev.respond_to?(:force_encoding) + tracker = Tracker.create!(:name => ja_dev) Project.find(1).trackers << tracker issue = submit_email('japanese_keywords_iso_2022_jp.eml', :issue => {:project => 'ecookbook'}, :allow_override => 'tracker') assert_kind_of Issue, issue |