Permalink
Browse files

added another fragment spec

  • Loading branch information...
1 parent d0f0b6b commit 79cca6ce3b4ae6d509ebf726660bd3e67508392a @flavorjones flavorjones committed Feb 10, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/test_basic.rb
View
@@ -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

0 comments on commit 79cca6c

Please sign in to comment.