# File test/attributes.rb, line 45 def test_size doc = Document.new "<a x='1' y='2' foo:x='3'/>" assert_equal 3, doc.root.attributes.length end