Browse Source

Added dropped test.

Martin Edenhofer 10 years ago
parent
commit
f4341f5c4b
1 changed files with 22 additions and 0 deletions
  1. 22 0
      test/unit/email_process_test.rb

+ 22 - 0
test/unit/email_process_test.rb

@@ -2050,6 +2050,28 @@ Some Text',
           },
         },
       },
+      {
+        :data => 'From: Some Body <somebody@example.com>
+To: Bob <bod@example.com>
+Cc: any@example.com
+Subject: some subject
+
+Some Text',
+        :trusted => false,
+        :success => true,
+        :result => {
+          0 => {
+            :group    => group2.name,
+            :priority => '2 normal',
+            :title    => 'some subject',
+          },
+          1 => {
+            :sender   => 'Customer',
+            :type     => 'email',
+            :internal => true,
+          },
+        },
+      },
     ]
     process(files)
     PostmasterFilter.destroy_all