sometimes reverts fail, yo

This commit is contained in:
rick
2010-12-08 15:55:35 -08:00
parent d436f5f112
commit e2fbac96cb
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -161,4 +161,9 @@ context "Page Reverting" do
assert_equal sha, page2.version.sha
assert_equal "INITIAL", page2.raw_data.strip
end
test "cannot revert conflicting commit" do
page1 = @wiki.page('A')
assert_equal false, @wiki.revert_page(page1, '302a5491a9a5ba12c7652ac831a44961afa312d2')
end
end