diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-01-18 19:30:04 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-01-19 10:37:21 -0300 |
commit | 047097950fa82cc045a514b53354a827816dc088 (patch) | |
tree | 01163d60248f1ef4c08e8b9da37be5e7e8790b3a /actionpack/test/template/html-scanner/sanitizer_test.rb | |
parent | 423b2626d85f75bb5fec03909ff8963bded7c7d5 (diff) | |
download | rails-047097950fa82cc045a514b53354a827816dc088.tar.gz rails-047097950fa82cc045a514b53354a827816dc088.tar.bz2 rails-047097950fa82cc045a514b53354a827816dc088.zip |
Refactor button_to helper to use token_tag method
Diffstat (limited to 'actionpack/test/template/html-scanner/sanitizer_test.rb')
-rw-r--r-- | actionpack/test/template/html-scanner/sanitizer_test.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/actionpack/test/template/html-scanner/sanitizer_test.rb b/actionpack/test/template/html-scanner/sanitizer_test.rb index b4d751e405..32c655c5fd 100644 --- a/actionpack/test/template/html-scanner/sanitizer_test.rb +++ b/actionpack/test/template/html-scanner/sanitizer_test.rb @@ -56,7 +56,6 @@ class SanitizerTest < ActionController::TestCase assert_sanitized "a b c<script language=\"Javascript\">blah blah blah</script>d e f", "a b cd e f" end - # TODO: Clean up def test_sanitize_js_handlers raw = %{onthis="do that" <a href="#" onclick="hello" name="foo" onbogus="remove me">hello</a>} assert_sanitized raw, %{onthis="do that" <a name="foo" href="#">hello</a>} @@ -215,7 +214,6 @@ class SanitizerTest < ActionController::TestCase assert_sanitized img_hack, "<img>" end - # TODO: Clean up def test_should_sanitize_attributes assert_sanitized %(<SPAN title="'><script>alert()</script>">blah</SPAN>), %(<span title="'><script>alert()</script>">blah</span>) end |