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:
parent
af360244d2
commit
78e7ceb347
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue