Skip to content
Snippets Groups Projects
Commit a8cc42e9 authored by Sunny Ripert's avatar Sunny Ripert
Browse files

Tests against gollum/gollum-lib instead of gollum/gollum

parent 958778fa
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -20,7 +20,7 @@ context "gitcode" do
 
test 'that the rendered output is correctly fetched and rendered as html code' do
# given
p = page_with_content "a\n\n```html:github:gollum/gollum/master/test/file_view/1_file.txt```\n\nb"
p = page_with_content "a\n\n```html:github:gollum/gollum-lib/master/test/file_view/1_file.txt```\n\nb"
 
# when rendering the page
rendered = Gollum::Markup.new(p).render
Loading
Loading
@@ -31,9 +31,10 @@ context "gitcode" do
end
 
test 'contents' do
g = Gollum::Gitcode.new 'gollum/gollum/master/test/file_view/1_file.txt'
g = Gollum::Gitcode.new 'gollum/gollum-lib/master/test/file_view/1_file.txt'
 
assert_equal g.contents, %{<ol class=\"tree\">\n <li class=\"file\">\n <a href=\"0\"><span class=\"icon\"></span>0</a>\n </li>\n</ol>\n}
expected = %{<ol class=\"tree\">\n <li class=\"file\">\n <a href=\"0\"><span class=\"icon\"></span>0</a>\n </li>\n</ol>\n}
assert_equal expected, g.contents
end
 
test "gitcode relative local file" do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment