Merge commit 'ea70d8ac7ae26f' into amp

This commit is contained in:
Tom Preston-Werner 2009-01-21 16:04:38 -08:00
commit 3ee55f1abe
2 changed files with 7 additions and 2 deletions

View File

@ -29,4 +29,9 @@ class TestFilters < Test::Unit::TestCase
assert_equal "chunky, bacon, bits, and pieces", @filter.array_to_sentence_string(["chunky", "bacon", "bits", "pieces"]) assert_equal "chunky, bacon, bits, and pieces", @filter.array_to_sentence_string(["chunky", "bacon", "bits", "pieces"])
end end
def test_xml_escape_with_ampersands
assert_equal "AT&amp;T", @filter.xml_escape("AT&T")
assert_equal "&lt;code&gt;command &amp;lt;filename&amp;gt;&lt;/code&gt;", @filter.xml_escape("<code>command &lt;filename&gt;</code>")
end
end end