diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-01-05 10:26:01 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-01-05 10:26:01 +0000 |
commit | 6a93d027e744bfc4ab2f8f7808ee99c770003481 (patch) | |
tree | b8bfe4e93e2314c8c7c9b95e99a861d8fad6b05f /spec/lib/tmail_extensions_spec.rb | |
parent | 48bbe41b36402a22b808ec860c1a84673b74527f (diff) | |
parent | b06195a428b5cb6c3e95b07c631e2f18febf05f0 (diff) |
Merge branch 'release/0.5' into wdtk
Conflicts:
.gitignore
Diffstat (limited to 'spec/lib/tmail_extensions_spec.rb')
-rw-r--r-- | spec/lib/tmail_extensions_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/lib/tmail_extensions_spec.rb b/spec/lib/tmail_extensions_spec.rb index c647fe522..6a55c34da 100644 --- a/spec/lib/tmail_extensions_spec.rb +++ b/spec/lib/tmail_extensions_spec.rb @@ -1,3 +1,4 @@ +# coding: utf-8 # This is a test of the set_content_type monkey patch in # lib/tmail_extensions.rb @@ -27,5 +28,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 |