mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 16:37:06 +02:00
Merged r4611 from trunk (Mercurial sorting).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.1-stable@4612 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -76,6 +76,17 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
|
||||
assert_equal @repository.changesets.find_by_revision('0').committed_on, rev0_committed_on
|
||||
end
|
||||
end
|
||||
|
||||
def test_changeset_order_by_revision
|
||||
@repository.fetch_changesets
|
||||
@repository.reload
|
||||
|
||||
c0 = @repository.latest_changeset
|
||||
c1 = @repository.changesets.find_by_revision('0')
|
||||
# sorted by revision (id), not by date
|
||||
assert c0.revision.to_i > c1.revision.to_i
|
||||
assert c0.committed_on < c1.committed_on
|
||||
end
|
||||
else
|
||||
puts "Mercurial test repository NOT FOUND. Skipping unit tests !!!"
|
||||
def test_fake; assert true end
|
||||
|
||||
Reference in New Issue
Block a user