mirror of
https://github.com/redmine/redmine.git
synced 2025-10-27 16:26:16 +01:00
* Added links to previous and next revisions on revision view (patch by Cyril Mougel slightly edited)
* Fixed TimelogController#report december error * Fixed ProjectsControllerTest#test_activity 1st and 2nd day of the month failure git-svn-id: http://redmine.rubyforge.org/svn/trunk@938 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -39,4 +39,24 @@ class ChangesetTest < Test::Unit::TestCase
|
||||
assert fixed.closed?
|
||||
assert_equal 90, fixed.done_ratio
|
||||
end
|
||||
|
||||
def test_previous
|
||||
changeset = Changeset.find_by_revision(3)
|
||||
assert_equal Changeset.find_by_revision(2), changeset.previous
|
||||
end
|
||||
|
||||
def test_previous_nil
|
||||
changeset = Changeset.find_by_revision(1)
|
||||
assert_nil changeset.previous
|
||||
end
|
||||
|
||||
def test_next
|
||||
changeset = Changeset.find_by_revision(2)
|
||||
assert_equal Changeset.find_by_revision(3), changeset.next
|
||||
end
|
||||
|
||||
def test_next_nil
|
||||
changeset = Changeset.find_by_revision(4)
|
||||
assert_nil changeset.next
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user