implement File finding

This commit is contained in:
Tom Preston-Werner
2010-04-11 13:08:16 -06:00
parent 9307900b09
commit 2e328e6a83
9 changed files with 36 additions and 6 deletions
+6
View File
@@ -7,5 +7,11 @@ context "File" do
test "new file" do
file = Gollum::File.new(@wiki)
assert_nil file.raw_data
end
test "existing file" do
file = @wiki.file("Mordor/todo.txt")
assert_equal "[ ] Write section on Ents\n", file.raw_data
end
end