Changeset 8820
- Timestamp:
- 02/07/08 23:10:01 (7 months ago)
- Files:
-
- trunk/actionmailer/test/fixtures/first_mailer/share.rhtml (deleted)
- trunk/actionmailer/test/fixtures/helper_mailer/use_example_helper.rhtml (deleted)
- trunk/actionmailer/test/fixtures/helper_mailer/use_helper_method.rhtml (deleted)
- trunk/actionmailer/test/fixtures/helper_mailer/use_helper.rhtml (deleted)
- trunk/actionmailer/test/fixtures/helper_mailer/use_mail_helper.rhtml (deleted)
- trunk/actionmailer/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.rhtml (deleted)
- trunk/actionmailer/test/fixtures/path.with.dots/multipart_with_template_path_with_dots.rhtml (deleted)
- trunk/actionmailer/test/fixtures/second_mailer/share.rhtml (deleted)
- trunk/actionmailer/test/fixtures/templates/signed_up.rhtml (deleted)
- trunk/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.ignored.rhtml (deleted)
- trunk/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.html.rhtml (deleted)
- trunk/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.plain.rhtml (deleted)
- trunk/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.rhtml (deleted)
- trunk/actionmailer/test/fixtures/test_mailer/signed_up_with_url.rhtml (deleted)
- trunk/actionmailer/test/fixtures/test_mailer/signed_up.rhtml (deleted)
- trunk/actionmailer/test/mail_service_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionmailer/test/mail_service_test.rb
r8781 r8820 768 768 def test_implicitly_multipart_messages 769 769 mail = TestMailer.create_implicitly_multipart_example(@recipient) 770 assert_equal 6, mail.parts.length770 assert_equal 3, mail.parts.length 771 771 assert_equal "1.0", mail.mime_version 772 772 assert_equal "multipart/alternative", mail.content_type 773 773 assert_equal "text/yaml", mail.parts[0].content_type 774 774 assert_equal "utf-8", mail.parts[0].sub_header("content-type", "charset") 775 assert_equal "text/plain", mail.parts[2].content_type 775 assert_equal "text/plain", mail.parts[1].content_type 776 assert_equal "utf-8", mail.parts[1].sub_header("content-type", "charset") 777 assert_equal "text/html", mail.parts[2].content_type 776 778 assert_equal "utf-8", mail.parts[2].sub_header("content-type", "charset") 777 assert_equal "text/html", mail.parts[4].content_type778 assert_equal "utf-8", mail.parts[4].sub_header("content-type", "charset")779 779 end 780 780 781 781 def test_implicitly_multipart_messages_with_custom_order 782 782 mail = TestMailer.create_implicitly_multipart_example(@recipient, nil, ["text/yaml", "text/plain"]) 783 assert_equal 6, mail.parts.length783 assert_equal 3, mail.parts.length 784 784 assert_equal "text/html", mail.parts[0].content_type 785 assert_equal "text/plain", mail.parts[ 2].content_type786 assert_equal "text/yaml", mail.parts[ 4].content_type785 assert_equal "text/plain", mail.parts[1].content_type 786 assert_equal "text/yaml", mail.parts[2].content_type 787 787 end 788 788