Permalink
Browse files

Merge pull request #7952 from ayrton/minor_cleanup

Minor cleanup, helper method was only used once
  • Loading branch information...
spastorino committed Oct 15, 2012
2 parents a550a68 + a0f97e4 commit 2b4c3c80d3473bac9dc29367775f5e4b4145d0a3
Showing with 1 addition and 5 deletions.
  1. +1 −5 actionpack/test/template/sanitize_helper_test.rb
@@ -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

0 comments on commit 2b4c3c8

Please sign in to comment.