Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Minor cleanup, helper method was only used once #7952

Merged
merged 1 commit into from

2 participants

@ayrton

No description provided.

@spastorino spastorino merged commit 2b4c3c8 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 15, 2012
  1. @ayrton
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 5 deletions.
  1. +1 −5 actionpack/test/template/sanitize_helper_test.rb
View
6 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
Something went wrong with that request. Please try again.