From 94dd4e7c329114c700bb5236e9b14584835e998c Mon Sep 17 00:00:00 2001 From: Vít Ondruch Date: Thu, 22 Jan 2015 17:32:58 +0100 Subject: Initial package. --- ...-sanitizer-1.0.1-Fix-false-possitive-test.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 rubygem-rails-html-sanitizer-1.0.1-Fix-false-possitive-test.patch (limited to 'rubygem-rails-html-sanitizer-1.0.1-Fix-false-possitive-test.patch') 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?= + +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 %(), %(baz) ++ assert_sanitized %(), %() + end + + def test_video_poster_sanitization -- cgit