diff options
author | Ayrton De Craene <ayrton.decraene@gmail.com> | 2012-10-15 11:30:14 +0200 |
---|---|---|
committer | Ayrton De Craene <ayrton.decraene@gmail.com> | 2012-10-15 11:30:54 +0200 |
commit | a0f97e467dba3c21a08e7e590317f4752eab1ff1 (patch) | |
tree | 092ae8e77e312aa7b33737417c0d367207357bb6 /actionpack/test | |
parent | a550a6839a256a9504b2dfc0eba949e36e39c061 (diff) | |
download | rails-a0f97e467dba3c21a08e7e590317f4752eab1ff1.tar.gz rails-a0f97e467dba3c21a08e7e590317f4752eab1ff1.tar.bz2 rails-a0f97e467dba3c21a08e7e590317f4752eab1ff1.zip |
Minor cleanup, helper method was only used once
Diffstat (limited to 'actionpack/test')
-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 |