Skip to content

Commit f7721dc

Browse files
committed
test: remove invalid XML
"<!DOCTYPE PUBLIC" must have system literal.
1 parent ab6845b commit f7721dc

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

test/test_doctype.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ def setup
1616
@doc_type_system = REXML::Document.new(xml_system).doctype
1717

1818
@pubid = "TEST_ID"
19-
xml_public = <<-XML
20-
<!DOCTYPE root PUBLIC "#{@pubid}">
21-
<root/>
22-
XML
23-
@doc_type_public = REXML::Document.new(xml_public).doctype
24-
2519
xml_public_system = <<-XML
2620
<!DOCTYPE root PUBLIC "#{@pubid}" "#{@sysid}">
2721
<root/>
@@ -33,11 +27,9 @@ def test_public
3327
assert_equal([
3428
nil,
3529
@pubid,
36-
@pubid,
3730
],
3831
[
3932
@doc_type_system.public,
40-
@doc_type_public.public,
4133
@doc_type_public_system.public,
4234
])
4335
end
@@ -56,12 +48,10 @@ def test_to_s_apostrophe
5648
def test_system
5749
assert_equal([
5850
@sysid,
59-
nil,
6051
@sysid,
6152
],
6253
[
6354
@doc_type_system.system,
64-
@doc_type_public.system,
6555
@doc_type_public_system.system,
6656
])
6757
end

0 commit comments

Comments
 (0)