stub of Repo#formatted_page

This commit is contained in:
Tom Preston-Werner
2010-04-07 17:16:02 -07:00
parent fcd821cf02
commit c8d9b351e2
4 changed files with 26 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@ require 'grit'
# internal
require 'gollum/repo'
require 'gollum/page'
module Gollum
VERSION = '0.0.1'
+5
View File
@@ -0,0 +1,5 @@
module Gollum
class Page
end
end
+9
View File
@@ -11,5 +11,14 @@ module Gollum
self.path = path
self.repo = Grit::Repo.new(path)
end
# Get the formatted page for a given page name.
#
# name - The String name of the wiki page.
#
# Returns a Gollum::Page or nil if no matching page was found.
def formatted_page(name)
Page.new()
end
end
end
+11
View File
@@ -0,0 +1,11 @@
require 'helper'
context "Page" do
setup do
@repo = Gollum::Repo.new("examples/lotr.git")
end
test "formatted page" do
page = @repo.formatted_page('Bilbo-Baggins')
end
end