Permalink
Browse files

add test for issue #793.

  • Loading branch information...
1 parent 8411efb commit e5eae06445dd04b7c8ac078c4474fc7afd3496c2 @jvshahid jvshahid committed with patcheng Nov 23, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/html/test_document_fragment.rb
@@ -24,6 +24,11 @@ def test_html_parse_encoding
end
end
+ def test_colons_are_not_removed
+ doc = Nokogiri::HTML::DocumentFragment.parse("<span>3:30pm</span>")
+ assert_match /3:30/, doc.to_s
+ end
+
def test_parse_encoding
fragment = "<div>hello world</div>"
f = Nokogiri::HTML::DocumentFragment.parse fragment, 'ISO-8859-1'

0 comments on commit e5eae06

Please sign in to comment.