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

Test routing runs through a job kicked off by the inbound email

This commit is contained in:
David Heinemeier Hansson 2018-09-19 16:23:14 -07:00
parent af360244d2
commit 78e7ceb347

View file

@ -20,4 +20,11 @@ class ActionMailroom::Mailbox::RoutingTest < ActiveSupport::TestCase
ApplicationMailbox.route @inbound_email
assert_equal "Discussion: Let's debate these attachments", $processed
end
test "delayed routing" do
perform_enqueued_jobs only: ActionMailroom::DeliverInboundEmailToMailroomJob do
another_inbound_email = create_inbound_email("welcome.eml", status: :pending)
assert_equal "Discussion: Let's debate these attachments", $processed
end
end
end