提交 2b4c3c80 编写于 作者: S Santiago Pastorino

Merge pull request #7952 from ayrton/minor_cleanup

Minor cleanup, helper method was only used once
......@@ -17,7 +17,7 @@ def test_strip_links
end
def test_sanitize_form
assert_sanitized "<form action=\"/foo/bar\" method=\"post\"><input></form>", ''
assert_equal '', sanitize("<form action=\"/foo/bar\" method=\"post\"><input></form>")
end
def test_should_sanitize_illegal_style_properties
......@@ -48,8 +48,4 @@ def test_strip_tags
def test_sanitize_is_marked_safe
assert sanitize("<html><script></script></html>").html_safe?
end
def assert_sanitized(text, expected = nil)
assert_equal((expected || text), sanitize(text))
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册