Skip to content

Commit

Permalink
add test for issue #790.
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshahid authored and patcheng committed Nov 26, 2012
1 parent e5eae06 commit b64272e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/xml/test_document.rb
Expand Up @@ -16,6 +16,11 @@ def setup
@xml = Nokogiri::XML.parse(File.read(XML_FILE), XML_FILE)
end

def test_document_with_initial_space
doc = Nokogiri::XML(" <?xml version='1.0' encoding='utf-8' ?><first \>")
assert_equal 2, doc.children.size
end

def test_root_set_to_nil
@xml.root = nil
assert_equal nil, @xml.root
Expand Down

0 comments on commit b64272e

Please sign in to comment.