Package: jekyll / 2.2.0+dfsg-2

0008-Update-test-for-newer-RDiscount.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Debian Ruby Extras Maintainers
 <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
Date: Tue, 10 Jun 2014 18:34:50 +0900
Subject: Update test for newer RDiscount

Signed-off-by: Youhei SASAKI <uwabami@gfd-dennou.org>
---
 test/test_rdiscount.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- jekyll.orig/test/test_rdiscount.rb
+++ jekyll/test/test_rdiscount.rb
@@ -16,7 +16,7 @@
     end
 
     should "render toc" do
-      assert_equal "<h1 id=\"Header+1\">Header 1</h1>\n\n<h2 id=\"Header+2\">Header 2</h2>\n\n<p>\n <ul>\n <li><a href=\"#Header+1\">Header 1</a>\n  <ul>\n  <li><a href=\"#Header+2\">Header 2</a>  </li>\n  </ul>\n </li>\n </ul>\n\n</p>", @markdown.convert("# Header 1\n\n## Header 2\n\n{:toc}").strip
+      assert_equal "<a name=\"Header.1\"></a>\n<h1>Header 1</h1>\n\n<a name=\"Header.2\"></a>\n<h2>Header 2</h2>\n\n<p><ul>\n <li><a href=\"#Header.1\">Header 1</a>\n <ul>\n  <li><a href=\"#Header.2\">Header 2</a></li>\n </ul>\n </li>\n</ul>\n\n</p>", @markdown.convert("# Header 1\n\n## Header 2\n\n{:toc}").strip
     end
   end
 end