diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-04-25 09:40:03 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-04-25 09:40:03 +0100 |
commit | d5c962d2a51104133deac97d959215e9eed564e3 (patch) | |
tree | d425c46ef886566f2aa63704b2120b3fa95273d2 /spec/lib | |
parent | 486a2d0b3b03febcc8aea001f799bb5d01639046 (diff) | |
parent | 268de9d8dd5eb03a314a1358947b07565710be1f (diff) |
Merge branch 'hotfix/0.17.0.1' into rails-3-develop
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/mail_handler/mail_handler_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/lib/mail_handler/mail_handler_spec.rb b/spec/lib/mail_handler/mail_handler_spec.rb index 49a65dade..ffc40ced9 100644 --- a/spec/lib/mail_handler/mail_handler_spec.rb +++ b/spec/lib/mail_handler/mail_handler_spec.rb @@ -22,6 +22,11 @@ describe 'when creating a mail object from raw data' do mail.multipart?.should == true end + it "should not fail on invalid byte sequence in content-disposition header", :focus => true do + part = Mail::Part.new("Content-Disposition: inline; filename=a\xB8z\r\n\r\nThis is the body text.") + lambda { part.inline? }.should_not raise_error + end + it 'should parse multiple to addresses with unqoted display names' do mail = get_fixture_mail('multiple-unquoted-display-names.email') mail.to.should == ["request-66666-caa77777@whatdotheyknow.com", "foi@example.com"] |