tests/tc_xml_xpointer.rb in libxml-ruby-0.5.1.0 vs tests/tc_xml_xpointer.rb in libxml-ruby-0.5.2.0
- old
+ new
@@ -1,6 +1,6 @@
-# $Id: tc_xml_xpointer.rb 67 2006-04-17 13:30:22Z roscopeco $
+# $Id: tc_xml_xpointer.rb 183 2007-09-21 14:09:52Z danj $
require "libxml_test"
require "test/unit"
class TC_XML_XPointer < Test::Unit::TestCase
def setup()
@@ -19,10 +19,10 @@
@xptr = nil
end
def test_libxml_xpointer_id()
@xptr = @root.pointer('xpointer(id("two"))')
- assert_instance_of(XML::XPath, @xptr)
+ assert_instance_of(XML::XPath::Object, @xptr)
set = @xptr.set
assert_instance_of(XML::Node::Set, set)
for n in set
# It seems from the spec that the pointer should
# be the whole node, rather than just the ID attr.