1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailbox/test/unit/inbound_email_test.rb

16 lines
506 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2018-12-24 15:16:22 -05:00
require_relative "../test_helper"
module ActionMailbox
class InboundEmailTest < ActiveSupport::TestCase
2018-09-28 14:12:51 -04:00
test "mail provides the parsed source" do
assert_equal "Discussion: Let's debate these attachments", create_inbound_email_from_fixture("welcome.eml").mail.subject
end
test "source returns the contents of the raw email" do
assert_equal file_fixture("welcome.eml").read, create_inbound_email_from_fixture("welcome.eml").source
end
end
end