[DRE-commits] [nanoc] 09/10: Adapt test to (old) rouge 1.x

Cédric Boutillier boutil at moszumanska.debian.org
Sat Jul 2 20:29:22 UTC 2016


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

boutil pushed a commit to branch master
in repository nanoc.

commit 6cb18edf5d6aa77a99dc41c15d2461965d68948d
Author: Cédric Boutillier <boutil at debian.org>
Date:   Sat Jul 2 22:24:29 2016 +0200

    Adapt test to (old) rouge 1.x
---
 debian/patches/rouge-1.x.patch | 16 ++++++++++++++++
 debian/patches/series          |  1 +
 2 files changed, 17 insertions(+)

diff --git a/debian/patches/rouge-1.x.patch b/debian/patches/rouge-1.x.patch
new file mode 100644
index 0000000..e3528d1
--- /dev/null
+++ b/debian/patches/rouge-1.x.patch
@@ -0,0 +1,16 @@
+Description: undo some test adaptation for rouge 2.0
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: not-needed
+Last-Update: 2016-07-02
+
+--- a/test/filters/test_colorize_syntax.rb
++++ b/test/filters/test_colorize_syntax.rb
+@@ -406,7 +406,7 @@
+ EOS
+       expected_output = <<EOS
+ before
+-<pre><code class=\"language-ruby\">  <span class=\"k\">def</span> <span class=\"nf\">foo</span>
++<pre><code class=\"language-ruby highlight\">  <span class=\"k\">def</span> <span class=\"nf\">foo</span>
+   <span class=\"k\">end</span></code></pre>
+ after
+ EOS
diff --git a/debian/patches/series b/debian/patches/series
index ce10b99..c3a9fa0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@ set-load_paths-for-sass-tests.patch
 filter_out_nil_gemspec.patch
 encoding.patch
 skip_tests_autopkgtest.patch
+rouge-1.x.patch

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



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