1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
kou 2010-09-17 13:31:16 +00:00
parent d357d7279a
commit 146bf4fdaf
12 changed files with 75 additions and 57 deletions

View file

@ -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