tests/tc_xml_xpath.rb in libxml-ruby-0.5.1.0 vs tests/tc_xml_xpath.rb in libxml-ruby-0.5.2.0
- old
+ new
@@ -1,17 +1,17 @@
-# $Id: tc_xml_xpath.rb 67 2006-04-17 13:30:22Z roscopeco $
+# $Id: tc_xml_xpath.rb 183 2007-09-21 14:09:52Z danj $
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)
+ @xpt = doc.find('/ruby_array/fixnum')
+ assert_instance_of(XML::XPath::Object, @xpt)
end
def teardown()
@xpt = nil
end