Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added another fragment spec

  • Loading branch information...
commit 79cca6ce3b4ae6d509ebf726660bd3e67508392a 1 parent d0f0b6b
@flavorjones flavorjones authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/test_basic.rb
View
4 test/test_basic.rb
@@ -58,5 +58,9 @@ def test_fragment_in_p_tag
def test_fragment_in_a_nontrivial_p_tag
assert_equal "<p>This fragment is in a p.</p>", Dryopteris.sanitize(" \n<p foo='bar'>This fragment is in a p.</p>")
end
+
+ def test_fragment_in_p_tag_plus_stuff
+ assert_equal "<p>This fragment is in a p.</p>foo<strong>bar</strong>", Dryopteris.sanitize(" \n<p foo='bar'>This fragment is in a p.</p>foo<strong>bar</strong>")
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.