diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-10-15 05:53:30 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-10-15 05:53:30 -0700 |
commit | 2b4c3c80d3473bac9dc29367775f5e4b4145d0a3 (patch) | |
tree | 092ae8e77e312aa7b33737417c0d367207357bb6 | |
parent | a550a6839a256a9504b2dfc0eba949e36e39c061 (diff) | |
parent | a0f97e467dba3c21a08e7e590317f4752eab1ff1 (diff) | |
download | rails-2b4c3c80d3473bac9dc29367775f5e4b4145d0a3.tar.gz rails-2b4c3c80d3473bac9dc29367775f5e4b4145d0a3.tar.bz2 rails-2b4c3c80d3473bac9dc29367775f5e4b4145d0a3.zip |
Merge pull request #7952 from ayrton/minor_cleanup
Minor cleanup, helper method was only used once
-rw-r--r-- | actionpack/test/template/sanitize_helper_test.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/actionpack/test/template/sanitize_helper_test.rb b/actionpack/test/template/sanitize_helper_test.rb index 7626cdf386..12d5260a9d 100644 --- a/actionpack/test/template/sanitize_helper_test.rb +++ b/actionpack/test/template/sanitize_helper_test.rb @@ -17,7 +17,7 @@ class SanitizeHelperTest < ActionView::TestCase 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 @@ class SanitizeHelperTest < ActionView::TestCase 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 |