From: Toshi MARUYAMA Date: Thu, 19 May 2011 02:16:56 +0000 (+0000) Subject: scm: git: add unit model test that revisions ordering is consistent in new database... X-Git-Tag: 1.2.0~39 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9376f6e2c370caa2de61e706584b1d29c44315cb;p=redmine.git 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 --- diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb index 59c179b39..e31205d6d 100644 --- a/test/unit/repository_git_test.rb +++ b/test/unit/repository_git_test.rb @@ -160,6 +160,13 @@ class RepositoryGitTest < ActiveSupport::TestCase assert_equal 15, @repository.changesets.count 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 @repository.fetch_changesets @repository.reload