Fix to ticket 2.

When updating the last page revision in the "continuous revision" case, created_at should be used
instead of Time.now.
This commit is contained in:
Alexey Verkhovsky 2005-01-16 22:27:09 +00:00
parent da3674770e
commit ef65e5e78a
2 changed files with 2 additions and 1 deletions

View file

@ -64,6 +64,7 @@ class PageTest < Test::Unit::TestCase
@page.revise("HisWay would be MyWay in kinda update", Time.local(2004, 4, 4, 16, 57), "MarianneSyhler")
assert_equal 2, @page.revisions.length
assert_equal "HisWay would be MyWay in kinda update", @page.revisions.last.content
assert_equal Time.local(2004, 4, 4, 16, 57), @page.revisions.last.created_at
@page.revise("HisWay would be MyWay in the house", Time.local(2004, 4, 4, 16, 58), "DavidHeinemeierHansson")
assert_equal 3, @page.revisions.length