aboutsummaryrefslogtreecommitdiffstats
path: root/test/rexml/test_encoding.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-17 13:31:16 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-17 13:31:16 +0000
commit146bf4fdafefc780d65f20c983d65f9cbe3bfe2d (patch)
tree4a738e18953b7bab6b063a7b1cc58cd668fbd974 /test/rexml/test_encoding.rb
parentd357d7279ab23275b769b594a2c4670797afc353 (diff)
downloadruby-146bf4fdafefc780d65f20c983d65f9cbe3bfe2d.tar.gz
* test/rexml/: fix fixture data path. All REXML tests are worked.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rexml/test_encoding.rb')
-rw-r--r--test/rexml/test_encoding.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rexml/test_encoding.rb b/test/rexml/test_encoding.rb
index c83c0622ef..19896ea8a8 100644
--- a/test/rexml/test_encoding.rb
+++ b/test/rexml/test_encoding.rb
@@ -1,13 +1,13 @@
# coding: binary
-require "test/unit/testcase"
+
+require "rexml_test_utils"
require 'rexml/source'
class EncodingTester < Test::Unit::TestCase
+ include REXMLTestUtils
include REXML
- TEST_DIR="test/data"
-
def setup
@encoded = "<?xml version='1.0' encoding='ISO-8859-3'?>"+
"<a><b>\346</b></a>"
@@ -85,7 +85,7 @@ class EncodingTester < Test::Unit::TestCase
end
def test_ticket_110
- utf16 = REXML::Document.new(File.new(File.join(TEST_DIR,"ticket_110_utf16.xml")))
+ utf16 = REXML::Document.new(File.new(fixture_path("ticket_110_utf16.xml")))
assert_equal( "UTF-16", utf16.encoding )
assert( utf16[0].kind_of?(REXML::XMLDecl))
end