fix index clobbering and tighten some stuff up

This commit is contained in:
Tom Preston-Werner
2010-04-19 10:50:40 -07:00
parent 2b20054d5c
commit 5f037e5e47
6 changed files with 107 additions and 16 deletions
+6
View File
@@ -31,6 +31,12 @@ context "Wiki page writing" do
assert_equal "Gollum page", @wiki.repo.commits.first.message
assert_equal "Tom Preston-Werner", @wiki.repo.commits.first.author.name
assert_equal "tom@github.com", @wiki.repo.commits.first.author.email
assert @wiki.page("Gollum")
@wiki.write_page("Bilbo", :markdown, "# Bilbo", commit)
assert_equal 2, @wiki.repo.commits.size
assert @wiki.page("Bilbo")
assert @wiki.page("Gollum")
end
test "update_page" do