Fixed md5sum of unit test, added class to read test emails form stdin.

This commit is contained in:
Martin Edenhofer 2012-11-07 23:18:31 +01:00
parent f57e15e984
commit a25588c1c3
2 changed files with 13 additions and 2 deletions

View file

@ -0,0 +1,11 @@
class Channel::MailStdin < Channel::EmailParser
include UserInfo
def initialize
puts "read main from STDIN"
msg = ARGF.read
process( {}, msg )
end
end

View file

@ -6,7 +6,7 @@ class EmailParserTest < ActiveSupport::TestCase
files = [
{
:data => IO.read('test/fixtures/mail1.box'),
:body_md5 => 'b57d21dcac6b05e1aa67af51a9e4c1ec',
:body_md5 => 'd62c8530fc8fd35bcff0b599db95a170',
:params => {
:from => 'John.Smith@example.com',
:from_email => 'John.Smith@example.com',