summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-19 02:16:56 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-19 02:16:56 +0000
commit9376f6e2c370caa2de61e706584b1d29c44315cb (patch)
tree9fa81d8fc72f0efaeb68650777512266c0b72197 /test
parent098655dbd061111e7389b6558026edf2f6898f97 (diff)
downloadredmine-9376f6e2c370caa2de61e706584b1d29c44315cb.tar.gz
redmine-9376f6e2c370caa2de61e706584b1d29c44315cb.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/unit/repository_git_test.rb7
1 files changed, 7 insertions, 0 deletions
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