Browse Source

Improved unit tests.

Martin Edenhofer 12 years ago
parent
commit
c1e2a6b055
2 changed files with 3 additions and 2 deletions
  1. 2 1
      test/fixtures/mail9.box
  2. 1 1
      test/unit/email_parser_test.rb

+ 2 - 1
test/fixtures/mail9.box

@@ -6,7 +6,8 @@ Received: from me.home (93-82-123-230.adsl.highway.telekom.at [93.82.123.230])
 	for <me@example.de>; Mon,  2 Jul 2012 16:14:33 +0100 (BST)
 From: Martin Edenhofer <martin@example.de>
 Content-Type: multipart/alternative; boundary="Apple-Mail=_A3A84DDB-B242-4521-AD6F-24FAEC28042F"
-Subject: Attchment Test
+Subject: =?utf-8?B?QVc6IE9UUlMgLyBBbmZyYWdlIE9UUlMgRWluZsO8aHJ1bmcvUHLDpHNlbnRh?=
+ =?utf-8?Q?tion_[Ticket#11545]?=
 Date: Mon, 2 Jul 2012 17:14:37 +0200
 Message-Id: <4C4ECFBF-BA12-46D9-A407-8E873F20DEF3@example.de>
 To: me@example.de

+ 1 - 1
test/unit/email_parser_test.rb

@@ -191,7 +191,7 @@ Hof",
           :from               => 'Martin Edenhofer <martin@example.de>',
           :from_email         => 'martin@example.de',
           :from_display_name  => 'Martin Edenhofer',
-          :subject            => 'Attchment Test',
+          :subject            => 'AW: OTRS / Anfrage OTRS Einführung/Präsentation [Ticket#11545]',
           :plain_part         => "Enjoy!\n\n-Martin\n\n--\nOld programmers never die. They just branch to a new address."
         },
       },