Adding functionality for fetching code from github

hack for 1.8.7

Don't miss test_markup's relative require

need some food now
This commit is contained in:
Henrik
2012-09-04 22:25:16 +02:00
committed by bootstraponline
parent 0cf0fad50e
commit 749b5a5ff8
8 changed files with 159 additions and 7 deletions
+4 -7
View File
@@ -1,17 +1,14 @@
# ~*~ encoding: utf-8 ~*~
require File.expand_path(File.join(File.dirname(__FILE__), "helper"))
require File.expand_path( "../helper", __FILE__ )
require File.expand_path( "../wiki_factory", __FILE__ )
context "Markup" do
setup do
@path = testpath("examples/test.git")
FileUtils.rm_rf(@path)
Grit::Repo.init_bare(@path)
Gollum::Wiki.default_options = {:universal_toc => false}
@wiki = Gollum::Wiki.new(@path)
@wiki, @path, @teardown = WikiFactory.create 'examples/test.git'
end
teardown do
FileUtils.rm_r(File.join(File.dirname(__FILE__), *%w[examples test.git]))
@teardown.()
end
test "formats page from Wiki#pages" do