Work around #363 (grit is broken).

This commit is contained in:
bootstraponline
2012-06-21 16:45:38 -06:00
parent 18ccc01501
commit 02041dbdb7
+11 -2
View File
@@ -21,9 +21,18 @@ context "Page Reverting" do
end
test "reverts single commit for a page" do
page1 = @wiki.page('B')
page1 = nil
while (page1 == nil)
page1 = @wiki.page('B')
end
sha = @wiki.revert_page(page1, '7c45b5f16ff3bae2a0063191ef832701214d4df5')
page2 = @wiki.page('B')
page2 = nil
while (page2 == nil)
page2 = @wiki.page('B')
end
assert_equal sha, page2.version.sha
assert_equal "INITIAL", body=page2.raw_data.strip
assert_equal body, File.read(File.join(@path, "B.md")).strip