This commit is contained in:
r888888888
2013-09-26 17:21:59 -07:00
parent 5c55e90810
commit 9e45158423
3 changed files with 8 additions and 2 deletions

View File

@@ -5,6 +5,10 @@ class DTextTest < ActiveSupport::TestCase
DText.parse(s)
end
def test_sanitize_heart
assert_equal('<p>&lt;3</p>', p("<3"))
end
def test_sanitize_less_than
assert_equal('<p>&lt;</p>', p("<"))
end