X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=vendor%2Frails%2Factionpack%2Ftest%2Ftemplate%2Fsanitize_helper_test.rb;fp=vendor%2Frails%2Factionpack%2Ftest%2Ftemplate%2Fsanitize_helper_test.rb;h=0000000000000000000000000000000000000000;hb=36d9f3351a3b4e8159279445190e2287ffdea86c;hp=f715071bbcfe8512e0743428905164761736503f;hpb=913cf6054b1d29b5d2f5e620304af7ee77cc1f1f;p=feedcatcher.git
diff --git a/vendor/rails/actionpack/test/template/sanitize_helper_test.rb b/vendor/rails/actionpack/test/template/sanitize_helper_test.rb
deleted file mode 100644
index f715071..0000000
--- a/vendor/rails/actionpack/test/template/sanitize_helper_test.rb
+++ /dev/null
@@ -1,48 +0,0 @@
-require 'abstract_unit'
-require 'testing_sandbox'
-
-# The exhaustive tests are in test/controller/html/sanitizer_test.rb.
-# This tests the that the helpers hook up correctly to the sanitizer classes.
-class SanitizeHelperTest < ActionView::TestCase
- tests ActionView::Helpers::SanitizeHelper
- include TestingSandbox
-
- def test_strip_links
- assert_equal "Dont touch me", strip_links("Dont touch me")
- assert_equal "on my mind\nall day long")
- assert_equal "0wn3d", strip_links("0wn3d")
- assert_equal "Magic", strip_links("Magic")
- assert_equal "FrrFox", strip_links("
This is a test.
")) - assert_equal("Weirdos", strip_tags("Wei<a onclick='alert(document.cookie);'/>rdos")) - assert_equal("This is a test.", strip_tags("This is a test.")) - assert_equal( - %{This is a test.\n\n\nIt no longer contains any HTML.\n}, strip_tags( - %{It no longer contains any HTML.