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