Browse files

[BUG] Add further test coverage to setting attributes with a namespac…

…e prefix
  • Loading branch information...
1 parent b545681 commit 058555575b2a20a994d622a732e936084b8968b9 @benlangfeld benlangfeld committed with flavorjones Oct 5, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/xml/test_node_attributes.rb
View
2 test/xml/test_node_attributes.rb
@@ -22,6 +22,7 @@ def test_prefixed_attributes
node = doc.root
assert_equal 'en-GB', node[:'xml:lang']
+ assert_equal 'en-GB', node.attributes['lang'].value
assert_equal nil, node[:lang]
end
@@ -34,6 +35,7 @@ def test_set_prefixed_attributes
assert_equal 'en-GB', node[:'xml:lang']
assert_equal nil, node[:lang]
+ assert_equal 'en-GB', node.attributes['lang'].value
assert_equal 'http://www.w3.org/XML/1998/namespace', node.attributes['lang'].namespace.href
end

0 comments on commit 0585555

Please sign in to comment.