[DRE-commits] [ruby-loofah] 01/02: Add patch to fix tests

Balasankar C balasankarc-guest at moszumanska.debian.org
Thu Jan 7 13:27:04 UTC 2016


This is an automated email from the git hooks/post-receive script.

balasankarc-guest pushed a commit to branch master
in repository ruby-loofah.

commit f649d3fa36035b708fba3792b1c97b9abf85dacc
Author: Balasankar C <balasankarc at autistici.org>
Date:   Thu Jan 7 18:53:52 2016 +0530

    Add patch to fix tests
---
 debian/patches/fix-tests-assert.patch | 19 +++++++++++++++++++
 debian/patches/series                 |  1 +
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/fix-tests-assert.patch b/debian/patches/fix-tests-assert.patch
new file mode 100644
index 0000000..9ca6884
--- /dev/null
+++ b/debian/patches/fix-tests-assert.patch
@@ -0,0 +1,19 @@
+Description: Tweak tests to match upstream libxml2
+ Upstream nokogiri uses a patched libxml2 library. So, to match with it, the
+ test has been patched. The test will not run as intended by the upstream, but
+ it satisfies the concept.
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2016-01-07
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/test/assets/testdata_sanitizer_tests1.dat
++++ b/test/assets/testdata_sanitizer_tests1.dat
+@@ -345,7 +345,7 @@
+     "name": "should_sanitize_script_tag_with_multiple_open_brackets",
+     "input": "<<script>alert(\"XSS\");//<</script>",
+     "output": "alert(\"XSS\");//",
+-    "rexml": "Ill-formed XHTML!"
++    "rexml": "<<script>alert('XSS');//<</script>"
+   },
+ 
+   {
diff --git a/debian/patches/series b/debian/patches/series
index b732c35..7d370bd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+fix-tests-assert.patch
 dont_require_lib_files.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-loofah.git



More information about the Pkg-ruby-extras-commits mailing list