From 09e5d6d0040211a513d47ea7309af31aa719ed5b Mon Sep 17 00:00:00 2001 From: John Duff Date: Tue, 16 Apr 2019 08:04:38 -0400 Subject: Fix Bcc header missing with emails from conductor and test helpers --- actionmailbox/test/unit/router_test.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'actionmailbox/test/unit') diff --git a/actionmailbox/test/unit/router_test.rb b/actionmailbox/test/unit/router_test.rb index 4dd3730604..7eb8e04a73 100644 --- a/actionmailbox/test/unit/router_test.rb +++ b/actionmailbox/test/unit/router_test.rb @@ -51,6 +51,15 @@ module ActionMailbox assert_equal inbound_email.mail, $processed_mail end + test "single string routing on bcc" do + @router.add_routes("first@example.com" => :first) + + inbound_email = create_inbound_email_from_mail(to: "someone@example.com", bcc: "first@example.com", subject: "This is a reply") + @router.route inbound_email + assert_equal "FirstMailbox", $processed_by + assert_equal inbound_email.mail, $processed_mail + end + test "single string routing case-insensitively" do @router.add_routes("first@example.com" => :first) -- cgit v1.2.3