summaryrefslogtreecommitdiff
path: root/test/rexml/test_changing_encoding.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rexml/test_changing_encoding.rb')
-rw-r--r--test/rexml/test_changing_encoding.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/rexml/test_changing_encoding.rb b/test/rexml/test_changing_encoding.rb
index f83247afb1..c6c1f59a1a 100644
--- a/test/rexml/test_changing_encoding.rb
+++ b/test/rexml/test_changing_encoding.rb
@@ -1,15 +1,13 @@
#!/usr/bin/ruby -Ku
# -*- coding: utf-8 -*-
-require 'kconv'
-require 'iconv'
require 'rexml/encoding'
class ChangingEncodings < Test::Unit::TestCase
def initialize a
@u = 'テスト ほげ ふが 美しい'
- @e = Kconv.toeuc(@u)
+ @e = @u.encode("EUC-JP")
@f = Foo.new
super
end