Permalink
Browse files

cleanup

  • Loading branch information...
1 parent 0585555 commit 6df19f21949ec8367324ff74a7ea83dfe0bf55c1 @flavorjones flavorjones committed Oct 12, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/xml/test_node_attributes.rb
@@ -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
@@ -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

0 comments on commit 6df19f2

Please sign in to comment.