diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-06-25 13:48:54 -0700 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-06-25 13:48:54 -0700 |
commit | f19257e79383dacff878272d1dec3fd8644df715 (patch) | |
tree | 69f07f0ce4e7530b1ef53fe7334994aa2a7726ea /spec/lib | |
parent | c6e4e27566a38ac56f3c5a38f19714fc361f5ede (diff) |
Add test case and fix for unrecognized encoding in subject line
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 d6e7ba5d2..241ce06c1 100644 --- a/spec/lib/mail_handler/mail_handler_spec.rb +++ b/spec/lib/mail_handler/mail_handler_spec.rb @@ -60,6 +60,11 @@ describe 'when creating a mail object from raw data' do body.should match(/ \xe2\x80\x93 /) end + it 'should not error on a subject line with an encoding encoding not recognized by iconv' do + mail = get_fixture_mail('unrecognized-encoding-mail.email') + lambda{ mail.subject }.should_not raise_error + end + end describe 'when asked for the from name' do |