Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Oct 12, 2012
1 parent 0585555 commit 6df19f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/xml/test_node_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def test_prefixed_attributes

node = doc.root

assert_equal 'en-GB', node[:'xml:lang']
assert_equal 'en-GB', node['xml:lang']
assert_equal 'en-GB', node.attributes['lang'].value
assert_equal nil, node[:lang]
assert_equal nil, node['lang']
end

def test_set_prefixed_attributes
Expand All @@ -33,9 +33,9 @@ def test_set_prefixed_attributes

node['xml:lang'] = 'en-GB'

assert_equal 'en-GB', node[:'xml:lang']
assert_equal nil, node[:lang]
assert_equal 'en-GB', node['xml:lang']
assert_equal 'en-GB', node.attributes['lang'].value
assert_equal nil, node['lang']
assert_equal 'http://www.w3.org/XML/1998/namespace', node.attributes['lang'].namespace.href
end

Expand Down

0 comments on commit 6df19f2

Please sign in to comment.