Sha256: cb8b6e6f48a021113e15ff471e9849803e706c6023bdc22db6dc585af9c09ee4
Contents?: true
Size: 838 Bytes
Versions: 2
Compression:
Stored size: 838 Bytes
Contents
require 'spec_helper' describe 'MailExtract::Parser' do it 'parses an email' do body = parse_fixture('simple.txt') body.should == result_fixture('simple.txt') end it 'parses an email with quotes' do body = parse_fixture('simple_with_quotes.txt') body.should == result_fixture('simple_with_quotes.txt') end it 'parses a reply email with broken authored line' do body = parse_fixture('reply_with_quotes.txt') body.should == 'This is a first line of the message' end it 'parses a message send via iphone' do body = parse_fixture('iphone.txt') body.should == 'This is a shit i sent from my iphone' end it 'parses a reply sent via iphone' do body = MailExtract.new(fixture('iphone_with_quotes.txt'), :only_head => true).body body.should == 'Primary reply content' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mail_extract-0.1.4 | spec/parser_spec.rb |
mail_extract-0.1.3 | spec/parser_spec.rb |