diff options
author | Mark Longair <mhl@pobox.com> | 2013-12-09 09:55:01 +0000 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-12-09 09:55:01 +0000 |
commit | 2b252613c781d30551b5bf97ba3773f28d77170b (patch) | |
tree | ac6e7e7cb062369610be90e2ac9961bc89c513c2 /spec/lib/mail_handler | |
parent | 8724db30b4f953e6d129db399ef9e9a79cd9fee4 (diff) | |
parent | 723d6c1d73176bf723b0c4726a150b1842bedf8e (diff) |
Merge branch 'document-pdf-fix' into rails-3-develop
Diffstat (limited to 'spec/lib/mail_handler')
-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 bc027eaec..49a65dade 100644 --- a/spec/lib/mail_handler/mail_handler_spec.rb +++ b/spec/lib/mail_handler/mail_handler_spec.rb @@ -409,6 +409,12 @@ describe 'when getting attachment attributes' do attributes[1][:body].length.should == 7769 end + it 'should treat a document/pdf attachment as application/pdf' do + mail = get_fixture_mail('document-pdf.email') + attributes = MailHandler.get_attachment_attributes(mail) + attributes[1][:content_type].should == "application/pdf" + end + it 'should produce a consistent set of url_part_numbers, content_types, within_rfc822_subjects and filenames from an example mail with lots of attachments' do mail = get_fixture_mail('many-attachments-date-header.email') |