From a0f97e467dba3c21a08e7e590317f4752eab1ff1 Mon Sep 17 00:00:00 2001 From: Ayrton De Craene Date: Mon, 15 Oct 2012 11:30:14 +0200 Subject: Minor cleanup, helper method was only used once --- actionpack/test/template/sanitize_helper_test.rb | 6 +----- 1 file changed, 1 insertion(+), 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 "
", '' + assert_equal '', sanitize("
") 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_safe? end - - def assert_sanitized(text, expected = nil) - assert_equal((expected || text), sanitize(text)) - end end -- cgit v1.2.3