1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Minor cleanup, helper method was only used once

This commit is contained in:
Ayrton De Craene 2012-10-15 11:30:14 +02:00
parent a550a6839a
commit a0f97e467d

View file

@ -17,7 +17,7 @@ class SanitizeHelperTest < ActionView::TestCase
end end
def test_sanitize_form 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 end
def test_should_sanitize_illegal_style_properties def test_should_sanitize_illegal_style_properties
@ -48,8 +48,4 @@ class SanitizeHelperTest < ActionView::TestCase
def test_sanitize_is_marked_safe def test_sanitize_is_marked_safe
assert sanitize("<html><script></script></html>").html_safe? assert sanitize("<html><script></script></html>").html_safe?
end end
def assert_sanitized(text, expected = nil)
assert_equal((expected || text), sanitize(text))
end
end end