Sha256: 1ca75277273cadd9bb25ba5f49653c366592426c40f107b3410e3b79a0ff0c09
Contents?: true
Size: 714 Bytes
Versions: 2
Compression:
Stored size: 714 Bytes
Contents
# $Id: tc_xml_parser7.rb 283 2008-07-01 06:48:35Z cfis $ require "libxml" require 'test/unit' class TC_XML_Parser7 < Test::Unit::TestCase def setup() @xp = XML::Parser.new() assert_instance_of(XML::Parser, @xp) f = File.open('model/rubynet.xml') f1 = @xp.io = f assert_instance_of(File, f1) assert_instance_of(File, @xp.io) @doc = @xp.parse assert_instance_of(XML::Document, @doc) end def teardown() @xp = nil @doc = nil end def test_ruby_xml_parser_new() assert_instance_of(XML::Parser, @xp) assert_instance_of(File, @xp.io) assert_instance_of(XML::Document, @doc) assert_instance_of(String, @doc.version) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-0.6.0 | test/tc_xml_parser7.rb |
libxml-ruby-0.6.0-x86-mswin32-60 | test/tc_xml_parser7.rb |