Sha256: a9dccc62e77d3ecfd1803f86538ccc36ddefa1aecaf3fd702b59b1c48db60c52
Contents?: true
Size: 680 Bytes
Versions: 2
Compression:
Stored size: 680 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_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
replyr-0.0.3 | test/replyr/reply_email_test.rb |
replyr-0.0.2 | test/replyr/reply_email_test.rb |