aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/mail_ext/recipients_test.rb
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-11-13 17:44:31 -0500
committerGeorge Claghorn <george@basecamp.com>2018-11-13 17:48:48 -0500
commitdd43f6e7d90ab0d2c354a9bef1970e4f3a7e6471 (patch)
treeba434e5cefa3ac21b935cf7b80ac6f540cdfbe67 /test/unit/mail_ext/recipients_test.rb
parent14b5b5afe2bf7369499243931a88db5f40933def (diff)
downloadrails-dd43f6e7d90ab0d2c354a9bef1970e4f3a7e6471.tar.gz
rails-dd43f6e7d90ab0d2c354a9bef1970e4f3a7e6471.tar.bz2
rails-dd43f6e7d90ab0d2c354a9bef1970e4f3a7e6471.zip
Consider X-Original-To
Diffstat (limited to 'test/unit/mail_ext/recipients_test.rb')
-rw-r--r--test/unit/mail_ext/recipients_test.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/unit/mail_ext/recipients_test.rb b/test/unit/mail_ext/recipients_test.rb
index 86db569a53..e39e1eb89c 100644
--- a/test/unit/mail_ext/recipients_test.rb
+++ b/test/unit/mail_ext/recipients_test.rb
@@ -3,11 +3,15 @@ require_relative '../../test_helper'
module MailExt
class RecipientsTest < ActiveSupport::TestCase
setup do
- @mail = Mail.new(to: "david@basecamp.com", cc: "jason@basecamp.com", bcc: "andrea@basecamp.com")
+ @mail = Mail.new \
+ to: "david@basecamp.com",
+ cc: "jason@basecamp.com",
+ bcc: "andrea@basecamp.com",
+ x_original_to: "ryan@basecamp.com"
end
- test "recipients include everyone from to, cc, and bcc" do
- assert_equal %w[ david@basecamp.com jason@basecamp.com andrea@basecamp.com ], @mail.recipients
+ test "recipients include everyone from to, cc, bcc, and x-original-to" do
+ assert_equal %w[ david@basecamp.com jason@basecamp.com andrea@basecamp.com ryan@basecamp.com ], @mail.recipients
end
test "recipients addresses use address objects" do
@@ -26,4 +30,4 @@ module MailExt
assert_equal "basecamp.com", @mail.bcc_addresses.first.domain
end
end
-end \ No newline at end of file
+end