Skip to content

Commit

Permalink
adds a test for #444 not to regress
Browse files Browse the repository at this point in the history
  • Loading branch information
yokolet authored and jvshahid committed Feb 17, 2016
1 parent c66fb3c commit f7a3817
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/html/test_document_fragment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,11 @@ def test_capturing_nonparse_errors_during_node_copy_between_fragments
assert_equal original_errors1, frag1.errors
assert_equal original_errors2, frag2.errors
end

def test_issue_444_trim_when_no_schem_given
fragment = Nokogiri::HTML::DocumentFragment.parse("<p>hi</p>\n").to_html
assert_equal "<p>hi</p>", fragment
end
end
end
end

0 comments on commit f7a3817

Please sign in to comment.