aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/mailbox
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2018-09-19 17:13:57 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2018-09-19 17:13:57 -0700
commit35654cdbd87f615e848921e50e5ebf17b0f618d2 (patch)
treefb523f57b7c352458fe3ac6619e80428045f6969 /test/unit/mailbox
parenta166c21a49ddb5e9cca7ecde7cbb671f14a56fef (diff)
downloadrails-35654cdbd87f615e848921e50e5ebf17b0f618d2.tar.gz
rails-35654cdbd87f615e848921e50e5ebf17b0f618d2.tar.bz2
rails-35654cdbd87f615e848921e50e5ebf17b0f618d2.zip
Less fancy
Diffstat (limited to 'test/unit/mailbox')
-rw-r--r--test/unit/mailbox/state_test.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/mailbox/state_test.rb b/test/unit/mailbox/state_test.rb
index d73ecaa1e2..de9da54d3f 100644
--- a/test/unit/mailbox/state_test.rb
+++ b/test/unit/mailbox/state_test.rb
@@ -17,13 +17,14 @@ end
class ActionMailroom::Mailbox::StateTest < ActiveSupport::TestCase
setup do
$processed = false
- @inbound_email = create_inbound_email_from_fixture("welcome.eml")
+ @inbound_email = create_inbound_email_from_mail \
+ to: "replies@example.com", subject: "I was processed"
end
test "successful mailbox processing leaves inbound email in delivered state" do
SuccessfulMailbox.receive @inbound_email
assert @inbound_email.delivered?
- assert_equal "Discussion: Let's debate these attachments", $processed
+ assert_equal "I was processed", $processed
end
test "unsuccessful mailbox processing leaves inbound email in failed state" do