Sha256: 795b5633fbd1821c5788b1e0ea3690a7b0df41b0dfc73dcdb1fd211eed1e07b5
Contents?: true
Size: 682 Bytes
Versions: 1
Compression:
Stored size: 682 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/support/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/support/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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
replyr-0.0.1 | test/replyr/reply_email_test.rb |