Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Jul 13, 2012
1 parent 0968eff commit 1b759b4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/xml/test_node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,14 @@ def test_namespace_in_rendered_xml
subject.namespace = ns
assert_match subject.to_xml, /xmlns="bar"/
end

def test_text_node_colon
document = Nokogiri::XML::Document.new
root = Nokogiri::XML::Node.new 'foo', document
document.root = root
root << "<a>hello:with_colon</a>"
assert_match document.to_xml, /hello:with_colon/
end
end
end
end

0 comments on commit 1b759b4

Please sign in to comment.