From e2affb22574a9fa96075b5cc350ff1001a15ccd1 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sat, 12 Jan 2013 00:14:00 -0800 Subject: [PATCH] Added passing tests for #616 --- test/test_tags.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/test_tags.rb b/test/test_tags.rb index 943d980e..816fd809 100644 --- a/test/test_tags.rb +++ b/test/test_tags.rb @@ -32,6 +32,7 @@ title: This is a test This document results in a markdown error with maruku {% highlight text %}#{code}{% endhighlight %} +{% highlight text linenos %}#{code}{% endhighlight %} CONTENT create_post(content, override) end @@ -80,9 +81,13 @@ CONTENT assert_no_match /markdown\-html\-error/, @result end - should "render markdown with pygments line handling" do + should "render markdown with pygments" do assert_match %{
test\n
}, @result end + + should "render markdown with pygments with line numbers" do + assert_match %{
1 test\n
}, @result + end end context "post content has highlight with file reference" do