diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-11-10 14:50:49 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-11-10 14:50:49 +0000 |
commit | e7c060068edcd2b47cd9b2306364ad2ff12ab0f9 (patch) | |
tree | 3ace8af06787732a88ce30a4b179f73b3d236d01 /spec/lib/mail_handler/mail_handler_spec.rb | |
parent | ce28b7b52bb931f94a977a55c0fd184dc220e1f5 (diff) | |
parent | 30124584b611eaa5747fb8032ce14393c3515a24 (diff) |
Merge branch 'rails-3-develop' of ssh://git.mysociety.org/data/git/public/alaveteli into rails-3-develop
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 ffc40ced9..e7ad93300 100644 --- a/spec/lib/mail_handler/mail_handler_spec.rb +++ b/spec/lib/mail_handler/mail_handler_spec.rb @@ -346,6 +346,12 @@ describe 'when getting attachment attributes' do attributes[0][:body].is_utf8?.should == true end + it 'should get multiple attachments from a multipart mail with text and HTML alternatives, which should be UTF-8' do + mail = get_fixture_mail('apple-mail-with-attachments.email') + attributes = MailHandler.get_attachment_attributes(mail) + attributes.length.should == 7 + end + it 'should expand a mail attached as text' do # Note that this spec will only pass using Tmail in the timezone set as datetime headers # are rendered out in the local time - using the Mail gem this is not necessary |