scm: git: add unit model test that revisions ordering is consistent in new database (#5357).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5854 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
098655dbd0
commit
9376f6e2c3
@ -160,6 +160,13 @@ class RepositoryGitTest < ActiveSupport::TestCase
|
|||||||
assert_equal 15, @repository.changesets.count
|
assert_equal 15, @repository.changesets.count
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_db_consistent_ordering_init
|
||||||
|
assert_nil @repository.extra_info
|
||||||
|
@repository.fetch_changesets
|
||||||
|
@repository.reload
|
||||||
|
assert_equal 1, @repository.extra_info["db_consistent"]["ordering"]
|
||||||
|
end
|
||||||
|
|
||||||
def test_latest_changesets
|
def test_latest_changesets
|
||||||
@repository.fetch_changesets
|
@repository.fetch_changesets
|
||||||
@repository.reload
|
@repository.reload
|
||||||
|
Loading…
x
Reference in New Issue
Block a user