Sha256: 50be090d95621d757fe42a727fc98df08dc93ca51bebd8ac8a20c3d881bff633
Contents?: true
Size: 684 Bytes
Versions: 2
Compression:
Stored size: 684 Bytes
Contents
# -*- encoding : utf-8 -*- require_relative '../test_helper' require 'mail' describe Replyr::ReplyEmail do it 'parses plain message object correctly' do mail = Mail.read('test/replyr/emails/reply_plain.eml') reply_email = Replyr::ReplyEmail.new(mail) assert_equal "wursttheke@me.com", reply_email.from assert_equal "Das ist wunderschön", reply_email.stripped_body end it 'parses multipart message object correctly' do mail = Mail.read('test/replyr/emails/reply_multipart.eml') reply_email = Replyr::ReplyEmail.new(mail) assert_equal "wursttheke@me.com", reply_email.from assert_equal "Das ist wunderschön", reply_email.stripped_body end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
replyr-0.0.5 | test/replyr/reply_email_test.rb |
replyr-0.0.4 | test/replyr/reply_email_test.rb |