]> source.dussan.org Git - redmine.git/commitdiff
scm: git: add unit model test that revisions ordering is consistent in new database...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 19 May 2011 02:16:56 +0000 (02:16 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 19 May 2011 02:16:56 +0000 (02:16 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5854 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_git_test.rb

index 59c179b3927183f4b88feeacc151a8d61f1e0477..e31205d6df6fcda3ea0d159cf486dbe1ffd6ae70 100644 (file)
@@ -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