Fix tests that depended on old github location

* Two tests depended on the following file existing:
  github/gollum/master/test/file_view/1_file.txt
This commit is contained in:
Simon Williams
2013-03-14 23:13:53 -06:00
parent 544d499ab1
commit 02dfb0a8c1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ context "gitcode" do
@wiki, @path, @cleanup = WikiFactory.create 'examples/test.git'
# given
p = page_with_content "a\n\n```html:github/gollum/master/test/file_view/1_file.txt```\n\nb"
p = page_with_content "a\n\n```html:gollum/gollum/master/test/file_view/1_file.txt```\n\nb"
# when rendering the page
@rendered = Gollum::Markup.new(p).render
@@ -29,7 +29,7 @@ context "gitcode" do
end
test 'contents' do
g = Gollum::Gitcode.new 'github/gollum/master/test/file_view/1_file.txt'
g = Gollum::Gitcode.new 'gollum/gollum/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}
end