We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e00a14 commit 35e1681Copy full SHA for 35e1681
test/parser/test_tree.rb
@@ -5,6 +5,12 @@
5
6
module REXMLTests
7
class TestTreeParser < Test::Unit::TestCase
8
+ private def parse(xml)
9
+ document = REXML::Document.new
10
+ parser = REXML::Parsers::TreeParser.new(xml, document)
11
+ parser.parse
12
+ end
13
+
14
class TestInvalid < self
15
def test_unmatched_close_tag
16
xml = "<root></not-root>"
@@ -31,13 +37,6 @@ def test_no_close_tag
31
37
Last 80 unconsumed characters:
32
38
MESSAGE
33
39
end
34
-
35
- private
36
- def parse(xml)
- document = REXML::Document.new
- parser = REXML::Parsers::TreeParser.new(xml, document)
- parser.parse
40
- end
41
42
43
0 commit comments