mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
8a0a103495
We didn't end up using the mailroom metaphor directly, so let's stick with a more conventional naming strategy.
13 lines
475 B
Ruby
13 lines
475 B
Ruby
require_relative '../test_helper'
|
|
|
|
module ActionMailbox
|
|
class InboundEmailTest < ActiveSupport::TestCase
|
|
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
|