Added test for #568

This commit is contained in:
Daniel Kimsey
2012-11-06 15:49:47 -05:00
parent b95df93775
commit 70127922ab
+13
View File
@@ -212,6 +212,19 @@ context "Markup" do
assert_equal expected, output
end
# Issue #568
test "tilde code blocks without a language" do
page = 'test_rgx'
@wiki.write_page(page, :markdown,
%Q(~~~
'hi'
~~~
), commit_details)
output = @wiki.page(page).formatted_data
expected = %Q{<div class=\"highlight\"><pre><span class=\"s\">'hi'</span>\n</pre></div>}
assert_equal expected, output
end
test "tilda code blocks #537" do
page = 'test_rgx'
@wiki.write_page(page, :markdown,