2013-02-24 08:10:46 -05:00
|
|
|
require_relative 'rexml_test_utils'
|
2010-09-17 09:14:14 -04:00
|
|
|
require 'rexml/parsers/lightparser'
|
|
|
|
|
2014-05-27 08:07:40 -04:00
|
|
|
module REXMLTests
|
2010-09-17 09:14:14 -04:00
|
|
|
class LightParserTester < Test::Unit::TestCase
|
2010-09-17 09:31:16 -04:00
|
|
|
include REXMLTestUtils
|
2010-09-17 09:46:56 -04:00
|
|
|
include REXML
|
|
|
|
def test_parsing
|
|
|
|
f = File.new(fixture_path("documentation.xml"))
|
|
|
|
parser = REXML::Parsers::LightParser.new( f )
|
2012-07-23 17:37:39 -04:00
|
|
|
parser.parse
|
2010-09-17 09:46:56 -04:00
|
|
|
end
|
2010-09-17 09:14:14 -04:00
|
|
|
end
|
2014-05-27 06:21:10 -04:00
|
|
|
end
|