From 63002ba36b858ca2aea814579193db9e1511d1fd Mon Sep 17 00:00:00 2001 From: Mikel Lindsaar Date: Sun, 28 Mar 2010 15:24:35 +1100 Subject: Fixing test, ; is a delimiter, not a termination character, ref RFC 2045 --- actionmailer/test/old_base/mail_service_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionmailer/test/old_base/mail_service_test.rb') diff --git a/actionmailer/test/old_base/mail_service_test.rb b/actionmailer/test/old_base/mail_service_test.rb index e49307bfda..8a677df9a8 100644 --- a/actionmailer/test/old_base/mail_service_test.rb +++ b/actionmailer/test/old_base/mail_service_test.rb @@ -1019,8 +1019,8 @@ EOF def test_empty_header_values_omitted result = TestMailer.unnamed_attachment(@recipient).encoded - assert_match %r{Content-Type: application/octet-stream;}, result - assert_match %r{Content-Disposition: attachment;}, result + assert_match %r{Content-Type: application/octet-stream}, result + assert_match %r{Content-Disposition: attachment}, result end def test_headers_with_nonalpha_chars -- cgit v1.2.3 From a41d1b1fb168ee248749444590050f120378afe1 Mon Sep 17 00:00:00 2001 From: Mikel Lindsaar Date: Sun, 28 Mar 2010 16:22:37 +1100 Subject: Updating test, should be calling :decoded, not :encoded, is a problem now that Mail is fixed --- actionmailer/test/old_base/mail_service_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionmailer/test/old_base/mail_service_test.rb') diff --git a/actionmailer/test/old_base/mail_service_test.rb b/actionmailer/test/old_base/mail_service_test.rb index 8a677df9a8..9eb067554f 100644 --- a/actionmailer/test/old_base/mail_service_test.rb +++ b/actionmailer/test/old_base/mail_service_test.rb @@ -784,7 +784,7 @@ EOF expected.date = Time.local 2004, 12, 12 created = TestMailer.utf8_body @recipient - assert_match(/åœö blah/, created.encoded) + assert_match(/åœö blah/, created.decoded) end def test_multiple_utf8_recipients -- cgit v1.2.3