Skip to content

Commit

Permalink
Failing test case for issue sparklemotion#712
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Jul 4, 2012
1 parent bfe87e0 commit ffe0c71
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/xml/test_node_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ def test_attribute_with_ns
node.attribute_with_ns('foo', 'http://tenderlovemaking.com/').value
end

def test_prefixed_attributes
doc = Nokogiri::XML "<root xml:lang='en-GB' />"

node = doc.root

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

def test_namespace_key?
doc = Nokogiri::XML <<-eoxml
<root xmlns:tlm='http://tenderlovemaking.com/'>
Expand Down

0 comments on commit ffe0c71

Please sign in to comment.