cache the ref => sha lookup

This commit is contained in:
rick
2010-08-24 12:39:26 -07:00
parent 3eeed9ba1e
commit 0500c7e10c
3 changed files with 16 additions and 10 deletions
+1
View File
@@ -349,6 +349,7 @@ context "Markup" do
index.add("greek/Bilbo-Baggins.md", content)
index.commit("Add alpha.jpg")
@wiki.clear_cache
page = @wiki.page("Bilbo Baggins")
rendered = Gollum::Markup.new(page).render
assert_equal output, rendered