aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer
diff options
context:
space:
mode:
authorpavel <pavel.rosicky@easy.cz>2018-12-19 23:09:04 +0100
committerJeremy Daer <jeremydaer@gmail.com>2018-12-19 18:12:58 -0800
commitbf01cc6744a3593c6256ab6765d7d7a500696bd5 (patch)
tree3a67ef8b0e40ca9e627f7b4edab0767c99f21f98 /actionmailer
parent04159a7a1dd8e63e070837a461eb15c1cb02aee1 (diff)
downloadrails-bf01cc6744a3593c6256ab6765d7d7a500696bd5.tar.gz
rails-bf01cc6744a3593c6256ab6765d7d7a500696bd5.tar.bz2
rails-bf01cc6744a3593c6256ab6765d7d7a500696bd5.zip
fix tests for mail 2.8
Diffstat (limited to 'actionmailer')
-rw-r--r--actionmailer/test/base_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionmailer/test/base_test.rb b/actionmailer/test/base_test.rb
index 86c0172772..5fb93b2a59 100644
--- a/actionmailer/test/base_test.rb
+++ b/actionmailer/test/base_test.rb
@@ -90,18 +90,18 @@ class BaseTest < ActiveSupport::TestCase
test "can pass random headers in as a hash to mail" do
hash = { "X-Special-Domain-Specific-Header" => "SecretValue",
- "In-Reply-To" => "1234@mikel.me.com" }
+ "In-Reply-To" => "<1234@mikel.me.com>" }
mail = BaseMailer.welcome(hash)
assert_equal("SecretValue", mail["X-Special-Domain-Specific-Header"].decoded)
- assert_equal("1234@mikel.me.com", mail["In-Reply-To"].decoded)
+ assert_equal("<1234@mikel.me.com>", mail["In-Reply-To"].decoded)
end
test "can pass random headers in as a hash to headers" do
hash = { "X-Special-Domain-Specific-Header" => "SecretValue",
- "In-Reply-To" => "1234@mikel.me.com" }
+ "In-Reply-To" => "<1234@mikel.me.com>" }
mail = BaseMailer.welcome_with_headers(hash)
assert_equal("SecretValue", mail["X-Special-Domain-Specific-Header"].decoded)
- assert_equal("1234@mikel.me.com", mail["In-Reply-To"].decoded)
+ assert_equal("<1234@mikel.me.com>", mail["In-Reply-To"].decoded)
end
# Attachments