From 19da52d69db92995eb518875b60e72b61f83469a Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Mon, 30 May 2005 23:09:50 +0000 Subject: Ignore Iconv::IllegalSequence errors when converting text #1341 [lon@speedymac.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1374 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionmailer/test/mail_service_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actionmailer/test/mail_service_test.rb') diff --git a/actionmailer/test/mail_service_test.rb b/actionmailer/test/mail_service_test.rb index 861206fc54..d715b88b10 100755 --- a/actionmailer/test/mail_service_test.rb +++ b/actionmailer/test/mail_service_test.rb @@ -425,6 +425,12 @@ EOF assert_nothing_raised { mail.body } end + def test_decode_message_with_incorrect_charset + fixture = File.read(File.dirname(__FILE__) + "/fixtures/raw_email6") + mail = TMail::Mail.parse(fixture) + assert_nothing_raised { mail.body } + end + def test_explicitly_multipart_messages mail = TestMailer.create_explicitly_multipart_example(@recipient) assert_equal 3, mail.parts.length -- cgit v1.2.3