##// END OF EJS Templates
replace hard-coded non ASCII literal to UTF-8 hexadecimal at test/unit/mail_handler_test.rb...
Toshi MARUYAMA -
r9120:ef77825f10e7
parent child
Show More
@@ -587,8 +587,12 class MailHandlerTest < ActiveSupport::TestCase
587
587
588 user = User.first(:order => 'id DESC')
588 user = User.first(:order => 'id DESC')
589 assert_equal "foo@example.org", user.mail
589 assert_equal "foo@example.org", user.mail
590 assert_equal "Ää", user.firstname
590 str1 = "\xc3\x84\xc3\xa4"
591 assert_equal "Öö", user.lastname
591 str2 = "\xc3\x96\xc3\xb6"
592 str1.force_encoding('UTF-8') if str1.respond_to?(:force_encoding)
593 str2.force_encoding('UTF-8') if str2.respond_to?(:force_encoding)
594 assert_equal str1, user.firstname
595 assert_equal str2, user.lastname
592 end
596 end
593
597
594 private
598 private
General Comments 0
You need to be logged in to leave comments. Login now