Skip to content

Commit

Permalink
[BUG] Add further test coverage to setting attributes with a namespac…
Browse files Browse the repository at this point in the history
…e prefix
  • Loading branch information
benlangfeld committed Oct 5, 2012
1 parent 351a051 commit 7541c8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/xml/test_node_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 7541c8b

Please sign in to comment.