Skip to content

Commit

Permalink
Fixed: spelling mistake in SanitizeHelperTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth committed Jun 16, 2014
1 parent 9dac1e8 commit 9a3a59e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionview/test/template/sanitize_helper_test.rb
@@ -1,7 +1,7 @@
require 'abstract_unit'

# The exhaustive tests are in test/template/html-scanner/sanitizer_test.rb
# This tests the that the helpers hook up correctly to the sanitizer classes.
# The exhaustive tests are in test/controller/html/sanitizer_test.rb.
# This tests that the helpers hook up correctly to the sanitizer classes.
class SanitizeHelperTest < ActionView::TestCase
tests ActionView::Helpers::SanitizeHelper

Expand Down Expand Up @@ -49,7 +49,7 @@ def test_strip_tags_pending
stripped = strip_tags(blank)
assert_equal blank, stripped
end

# Actual: "something "
assert_equal "something &lt;img onerror=alert(1337)", ERB::Util.html_escape(strip_tags("something <img onerror=alert(1337)"))
end
Expand Down

0 comments on commit 9a3a59e

Please sign in to comment.