diff options
author | Mikel Lindsaar <raasdnil@gmail.com> | 2010-01-08 12:15:36 +1100 |
---|---|---|
committer | Mikel Lindsaar <raasdnil@gmail.com> | 2010-01-08 12:17:12 +1100 |
commit | 1ddf17dff0cb21c9e13842af82cfbd0c22c38e62 (patch) | |
tree | a8feebe2aeb136ced6e5710ab5613b50aae97254 /actionmailer | |
parent | 8087d518425597ab1a667878702dd3aaa9def488 (diff) | |
download | rails-1ddf17dff0cb21c9e13842af82cfbd0c22c38e62.tar.gz rails-1ddf17dff0cb21c9e13842af82cfbd0c22c38e62.tar.bz2 rails-1ddf17dff0cb21c9e13842af82cfbd0c22c38e62.zip |
Return-Path per RFC needs '<' and '>' around the addr_spec
Diffstat (limited to 'actionmailer')
-rw-r--r-- | actionmailer/test/mail_service_test.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/actionmailer/test/mail_service_test.rb b/actionmailer/test/mail_service_test.rb index fa32537d0c..9b3da299ba 100644 --- a/actionmailer/test/mail_service_test.rb +++ b/actionmailer/test/mail_service_test.rb @@ -1110,10 +1110,15 @@ EOF assert_equal "another@somewhere.test", mail['return-path'].to_s end + def test_return_path_with_create + mail = TestMailer.create_return_path + assert_equal "another@somewhere.test", mail.return_path + end + def test_return_path_with_deliver ActionMailer::Base.delivery_method = :smtp TestMailer.deliver_return_path - assert_match %r{^Return-Path:.*another@somewhere.test}, MockSMTP.deliveries[0][0] + assert_match %r{^Return-Path: <another@somewhere.test>}, MockSMTP.deliveries[0][0] assert_equal "another@somewhere.test", MockSMTP.deliveries[0][1].to_s end |