Permalink
Browse files

Mail now correctly bundles up the charset into the content type field

  • Loading branch information...
1 parent a41d1b1 commit b91c57d16cc1b7b686e5ecc208dfe08648360803 @mikel mikel committed Mar 28, 2010
Showing with 7 additions and 7 deletions.
  1. +7 −7 actionmailer/test/base_test.rb
@@ -135,13 +135,13 @@ def different_layout(layout_name='')
:mime_version => '2.0',
:reply_to => 'reply-to@test.lindsaar.net',
:date => @time)
- assert_equal(['bcc@test.lindsaar.net'], email.bcc)
- assert_equal(['cc@test.lindsaar.net'], email.cc)
- assert_equal('multipart/mixed', email.content_type)
- assert_equal('iso-8559-1', email.charset)
- assert_equal('2.0', email.mime_version)
- assert_equal(['reply-to@test.lindsaar.net'], email.reply_to)
- assert_equal(@time, email.date)
+ assert_equal(['bcc@test.lindsaar.net'], email.bcc)
+ assert_equal(['cc@test.lindsaar.net'], email.cc)
+ assert_equal('multipart/mixed; charset=iso-8559-1', email.content_type)
+ assert_equal('iso-8559-1', email.charset)
+ assert_equal('2.0', email.mime_version)
+ assert_equal(['reply-to@test.lindsaar.net'], email.reply_to)
+ assert_equal(@time, email.date)
end
test "mail() renders the template using the method being processed" do

0 comments on commit b91c57d

Please sign in to comment.