From 9376f6e2c370caa2de61e706584b1d29c44315cb Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 19 May 2011 02:16:56 +0000 Subject: [PATCH] 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 --- test/unit/repository_git_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.39.5