diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-05-16 16:04:16 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-05-16 16:04:16 +0100 |
commit | 6530624e51a5a7c6c6cc870cf1e9114c7da6396d (patch) | |
tree | fb0f7a7a461f0b4c7cce218f24c66f0d487910e4 /spec/lib/mail_handler/mail_handler_spec.rb | |
parent | 527669bdb09a5d3add9270983a93320555e8bf7c (diff) |
Add failing test for case where a mail part has a content-type header with no charset field.
Diffstat (limited to 'spec/lib/mail_handler/mail_handler_spec.rb')
-rw-r--r-- | spec/lib/mail_handler/mail_handler_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/mail_handler/mail_handler_spec.rb b/spec/lib/mail_handler/mail_handler_spec.rb index 5e00fda16..c49e2ea07 100644 --- a/spec/lib/mail_handler/mail_handler_spec.rb +++ b/spec/lib/mail_handler/mail_handler_spec.rb @@ -290,6 +290,12 @@ end describe 'when getting attachment attributes' do + it 'should handle a mail with a non-multipart part with no charset in the Content-Type header' do + mail = get_fixture_mail('part-without-charset-in-content-type.email') + attributes = MailHandler.get_attachment_attributes(mail) + attributes.size.should == 2 + end + it 'should get two attachment parts from a multipart mail with text and html alternatives and an image' do mail = get_fixture_mail('quoted-subject-iso8859-1.email') |