This commit is contained in:
bootstraponline
2012-11-16 18:13:38 -07:00
parent 80088832b9
commit 2d886fd38a
+2
View File
@@ -5,6 +5,8 @@ class WikiFactory
Gollum::Wiki.default_options = {:universal_toc => false}
cleanup = Proc.new { FileUtils.rm_r File.join(File.dirname(__FILE__), *%w[examples test.git]) }
wiki = Gollum::Wiki.new(path)
# set 'wiki-' prefix on ids for tests
wiki.sanitization.id_prefix = 'wiki-'
return wiki, path, cleanup
end
end