##// END OF EJS Templates
add test of gmail ISO-8859-2 mail receiving (#16122)...
Toshi MARUYAMA -
r12628:b5d80456acd2
parent child
Show More
@@ -0,0 +1,11
1 Date: Tue, 13 Aug 2013 10:56:04 +0700
2 From: John Smith <JSmith@somenet.foo>
3 Subject: =?ISO-8859-2?Q?Nikad_vi=B9e?=
4 To: redmine@somenet.foo
5 Content-Type: text/plain; charset=ISO-8859-2
6 Content-Transfer-Encoding: quoted-printable
7
8 Na =B9triku se su=B9i =B9osi=E6.
9
10 --=20
11 =B9osi=E6
@@ -540,6 +540,17 class MailHandlerTest < ActiveSupport::TestCase
540 assert_equal str, issue.description
540 assert_equal str, issue.description
541 end
541 end
542
542
543 def test_gmail_iso8859_2
544 issue = submit_email(
545 'gmail-iso8859-2.eml',
546 :issue => {:project => 'ecookbook'}
547 )
548 assert_kind_of Issue, issue
549 str = "Na \xc5\xa1triku se su\xc5\xa1i \xc5\xa1osi\xc4\x87."
550 str.force_encoding('UTF-8') if str.respond_to?(:force_encoding)
551 assert issue.description.include?(str)
552 end
553
543 def test_add_issue_with_japanese_subject
554 def test_add_issue_with_japanese_subject
544 issue = submit_email(
555 issue = submit_email(
545 'subject_japanese_1.eml',
556 'subject_japanese_1.eml',
General Comments 0
You need to be logged in to leave comments. Login now