diff options
author | Alex Young <alex@bytemark.co.uk> | 2015-04-20 14:06:19 +0100 |
---|---|---|
committer | Alex Young <alex@bytemark.co.uk> | 2015-04-20 14:06:19 +0100 |
commit | 2ec8ca7efdab8b3246ba421ae4e9052702d398db (patch) | |
tree | 1bb822d54d311d8e980fcee6064b1257815ac695 /test/tc_mauve_sender.rb | |
parent | d92499d23bdb591ecbe824db3064ec4ab5e8f4f5 (diff) |
Get tests passing on ruby 2.0.0-p598
Diffstat (limited to 'test/tc_mauve_sender.rb')
-rw-r--r-- | test/tc_mauve_sender.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/tc_mauve_sender.rb b/test/tc_mauve_sender.rb index 3a98c25..858a7ec 100644 --- a/test/tc_mauve_sender.rb +++ b/test/tc_mauve_sender.rb @@ -7,7 +7,6 @@ require 'pp' require 'timecop' require 'mauve/sender' require 'locale' -require 'iconv' class TcMauveSender < Test::Unit::TestCase @@ -29,7 +28,7 @@ class TcMauveSender < Test::Unit::TestCase # Set up a couple of crazy sources. # utf8_source = "Å ðîßtáñt plàñët" - iso88591_source = Iconv.conv(Locale.current.charset, "UTF-8", utf8_source) + iso88591_source = utf8_source.encode(Locale.current.charset) # # Make sure our two sources are distinct |