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:
parent
a550a6839a
commit
a0f97e467d
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue