# File test/attributes.rb, line 39 def test_get_attribute doc = Document.new '<a x:foo="1" foo="2" bar="3"/>' assert_equals '2', doc.root.attributes.get_attribute("foo").value assert_equals '1', doc.root.attributes.get_attribute("x:foo").value end