Skip to content

Commit

Permalink
Fix inadvertently no-opped test on Ruby 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Jan 25, 2013
1 parent a0dfa69 commit e9f1307
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions spec/mail/message_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e9f1307

Please sign in to comment.