aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailbox/test/unit/mailbox/routing_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionmailbox/test/unit/mailbox/routing_test.rb')
-rw-r--r--actionmailbox/test/unit/mailbox/routing_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionmailbox/test/unit/mailbox/routing_test.rb b/actionmailbox/test/unit/mailbox/routing_test.rb
index d4ba702ac5..8302b1d5cc 100644
--- a/actionmailbox/test/unit/mailbox/routing_test.rb
+++ b/actionmailbox/test/unit/mailbox/routing_test.rb
@@ -28,4 +28,9 @@ class ActionMailbox::Base::RoutingTest < ActiveSupport::TestCase
assert_equal "Discussion: Let's debate these attachments", $processed
end
end
+
+ test "mailbox_for" do
+ inbound_email = create_inbound_email_from_fixture "welcome.eml", status: :pending
+ assert_equal RepliesMailbox, ApplicationMailbox.mailbox_for(inbound_email)
+ end
end