diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-05-16 16:41:19 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-05-16 16:41:19 +0100 |
commit | 065f69f3ea0f6911275553ff6a2f5aa47dfc7688 (patch) | |
tree | 14446b9cde90ffcf33f922264783486702db5c39 /spec/lib/mail_handler/mail_handler_spec.rb | |
parent | 527669bdb09a5d3add9270983a93320555e8bf7c (diff) | |
parent | e01774371ae7b4a5f9e3ef8ee0280453736bd4f2 (diff) |
Merge branch 'tmail-to-mail-nil-part' into tmail-to-mail-tests
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') |