From 7c8e4d46ebd09b2128371cdbcc02a44563220ed0 Mon Sep 17 00:00:00 2001
From: Parker Moore
Date: Mon, 29 Dec 2014 00:11:13 -0500
Subject: [PATCH] Fix up new output for RDiscount 2.
---
test/test_rdiscount.rb | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/test/test_rdiscount.rb b/test/test_rdiscount.rb
index ed2c6f98..da9401cf 100644
--- a/test/test_rdiscount.rb
+++ b/test/test_rdiscount.rb
@@ -16,7 +16,24 @@ class TestRdiscount < Test::Unit::TestCase
end
should "render toc" do
- assert_equal "\n\n\n\n\n
\n\n
", @markdown.convert("# Header 1\n\n## Header 2\n\n{:toc}").strip
+ toc = <<-TOC
+
+Header 1
+
+
+Header 2
+
+
+
+
+TOC
+ assert_equal toc.strip, @markdown.convert("# Header 1\n\n## Header 2\n\n{:toc}").strip
end
end
end