Sha256: 797b2adfe11c3e90a64ed95d7ee8eeb152c8f02afb9bb40ca72bfa32de05a5b1
Contents?: true
Size: 652 Bytes
Versions: 3
Compression:
Stored size: 652 Bytes
Contents
# $Id: tc_xml_xpath.rb,v 1.3 2006/04/17 13:30:19 roscopeco Exp $ require "libxml_test" require "test/unit" class TC_XML_XPath < Test::Unit::TestCase def setup() xp = XML::Parser.new() str = '<ruby_array uga="booga" foo="bar"><fixnum>one</fixnum><fixnum>two</fixnum></ruby_array>' assert_equal(str, xp.string = str) doc = xp.parse assert_instance_of(XML::Document, doc) @xpt = doc.find('/ruby_array/fixnum').xpath assert_instance_of(XML::XPath, @xpt) end def teardown() @xpt = nil end def test_libxml_xpath_set() set = @xpt.set assert_instance_of(XML::Node::Set, set) end end # TC_XML_Document
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-0.3.8 | tests/tc_xml_xpath.rb |
libxml-ruby-0.3.8.2 | tests/tc_xml_xpath.rb |
libxml-ruby-0.3.8.4 | tests/tc_xml_xpath.rb |