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
This commit is contained in:
Toshi MARUYAMA 2012-01-05 14:46:37 +00:00
parent 93a0daa383
commit c3c1d4c7ec
1 changed files with 3 additions and 1 deletions

View File

@ -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