forked from mikel/mail
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix inadvertently no-opped test on Ruby 1.8
- Loading branch information
Showing
1 changed file
with
1 addition
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -303,12 +303,7 @@ def basic_email | |
it "should parse non-UTF8 sources" do | ||
mail = Mail::Message.new(File.read(fixture('emails', 'multi_charset', 'japanese_shiftjis.eml'))) | ||
mail.to.should eq ["[email protected]"] | ||
if RUBY_VERSION >= '1.9' | ||
expected = mail.body.decoded.force_encoding("iso-2022-jp").encode("UTF-8") | ||
else | ||
expected = "すみません。" | ||
end | ||
expected.should eq "すみません。" | ||
mail.decoded.should eq "すみません。" | ||
end | ||
end | ||
|
||
|