diff options
author | David Cabo <david@calibea.com> | 2011-10-13 00:32:50 +0200 |
---|---|---|
committer | David Cabo <david@calibea.com> | 2011-10-13 00:32:50 +0200 |
commit | 6bc07fec63a929d5413b33f7bc34e3505e17a090 (patch) | |
tree | e9715fb2e8d503ff88e5aa96ce06b5b3e6397bbc /spec/lib/tmail_extensions_spec.rb | |
parent | 6b19c36f114624d7e53be8edc9ee490ecd20d0b0 (diff) | |
parent | 65e172053d425e57b0b7df751f0be93cc1d7aff3 (diff) |
Merge branch 'develop' of github.com:sebbacon/alaveteli into develop
Diffstat (limited to 'spec/lib/tmail_extensions_spec.rb')
-rw-r--r-- | spec/lib/tmail_extensions_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/lib/tmail_extensions_spec.rb b/spec/lib/tmail_extensions_spec.rb index c647fe522..ffb8cb178 100644 --- a/spec/lib/tmail_extensions_spec.rb +++ b/spec/lib/tmail_extensions_spec.rb @@ -27,5 +27,14 @@ describe "when using TMail" do mail.to.should == ["request-66666-caa77777@whatdotheyknow.com", "foi@example.com"] end + it 'should convert to utf8' do + # NB this isn't actually a TMail extension, but is core TMail; + # this was just a convenient place to assert the UTF8 + # conversion is working + mail = TMail::Mail.parse(load_file_fixture('iso8859_2_raw_email.email')) + mail.subject.should have_text(/gjatë/u) + mail.body.is_utf8?.should == true + end + end |