Skip to content

Commit ab6845b

Browse files
committed
test: fix a bug that XML path not content is parsed
1 parent 935584e commit ab6845b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_light.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ class LightTester < Test::Unit::TestCase
99
include REXML::Light
1010

1111
def test_parse_large
12-
xml_string = fixture_path("documentation.xml")
12+
xml_string = File.read(fixture_path("documentation.xml"))
1313
parser = REXML::Parsers::LightParser.new(xml_string)
1414
tag, content = parser.parse
15-
assert_equal([:document, :text], [tag, content.first])
15+
assert_equal([:document, :xmldecl], [tag, content.first])
1616
end
1717

1818
# FIXME INCOMPLETE

0 commit comments

Comments
 (0)