tests/tc_xml_node7.rb in libxml-ruby-0.3.8.2 vs tests/tc_xml_node7.rb in libxml-ruby-0.3.8.4

- old
+ new

@@ -1,6 +1,6 @@ -# $Id: tc_xml_node7.rb,v 1.2 2006/11/20 01:22:08 roscopeco Exp $ +# $Id: tc_xml_node7.rb,v 1.2.2.1 2006/11/27 10:32:01 roscopeco Exp $ require "libxml_test" require 'test/unit' class TC_XML_Node7 < Test::Unit::TestCase def setup() @@ -22,7 +22,15 @@ prop = prop.next assert_instance_of XML::Attr, prop assert_equal 'foo', prop.name assert_equal 'bar', prop.value + end + + def test_xml_node_properties_when_no_attributes + xp = XML::Parser.string("<root></root>") + doc = xp.parse + root = doc.root + + assert_nil root.properties end end