summaryrefslogtreecommitdiffstats
path: root/rubygem-rails-html-sanitizer-1.0.1-Fix-false-possitive-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'rubygem-rails-html-sanitizer-1.0.1-Fix-false-possitive-test.patch')
-rw-r--r--rubygem-rails-html-sanitizer-1.0.1-Fix-false-possitive-test.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/rubygem-rails-html-sanitizer-1.0.1-Fix-false-possitive-test.patch b/rubygem-rails-html-sanitizer-1.0.1-Fix-false-possitive-test.patch
new file mode 100644
index 0000000..1e0f425
--- /dev/null
+++ b/rubygem-rails-html-sanitizer-1.0.1-Fix-false-possitive-test.patch
@@ -0,0 +1,29 @@
+From 643009712ca5f82639519c9617606f3fdb744b63 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?=
+ <rafael.franca@plataformatec.com.br>
+Date: Thu, 25 Sep 2014 16:38:51 -0300
+Subject: [PATCH] Fix false possitive test
+
+This test was passing because the assert_dom_equal was only comparing
+the top level tag.
+
+This bug was fixed at
+https://github.com/rails/rails-dom-testing/commit/c06500ce4185aed04b40806feff6e123d741f235
+and released as rails-dom-testing 1.0.3
+---
+ test/sanitizer_test.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/sanitizer_test.rb b/test/sanitizer_test.rb
+index 5d6ad02..d1ab2aa 100644
+--- a/test/sanitizer_test.rb
++++ b/test/sanitizer_test.rb
+@@ -173,7 +173,7 @@ def test_sanitize_image_src
+ end
+
+ def test_should_allow_anchors
+- assert_sanitized %(<a href="foo" onclick="bar"><script>baz</script></a>), %(<a href=\"foo\">baz</a>)
++ assert_sanitized %(<a href="foo" onclick="bar"><script>baz</script></a>), %(<a href=\"foo\"></a>)
+ end
+
+ def test_video_poster_sanitization