use cached tree map when finding files

This commit is contained in:
rick
2010-08-24 11:25:05 -07:00
parent cc3d9529cc
commit d606511fdf
2 changed files with 13 additions and 9 deletions
+5 -2
View File
@@ -11,9 +11,12 @@ context "File" do
end
test "existing file" do
file = @wiki.file("Mordor/todo.txt")
commit = @wiki.repo.commits.first
file = @wiki.file("Mordor/todo.txt")
assert_equal "[ ] Write section on Ents\n", file.raw_data
assert_equal @wiki.repo.commits.first.id, file.version.id
assert_equal 'todo.txt', file.name
assert_equal commit.id, file.version.id
assert_equal commit.author.name, file.version.author.name
end
test "accessing tree" do