summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-04-04 07:15:21 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-04-04 07:15:21 +0000
commite5972392ce1a89b311ba7ab0eab7c8cbe385fc99 (patch)
treebf445ab463532d61cb73d5972ac65d00f70fb974 /test
parenta423a03b76c67ece9bc61ad4c376c8f2b5b9a420 (diff)
downloadredmine-e5972392ce1a89b311ba7ab0eab7c8cbe385fc99.tar.gz
redmine-e5972392ce1a89b311ba7ab0eab7c8cbe385fc99.zip
code clean up RepositoryGitTest for test repository update
git-svn-id: http://svn.redmine.org/redmine/trunk@18036 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/repository_git_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb
index ee05c123f..6b228dc36 100644
--- a/test/unit/repository_git_test.rb
+++ b/test/unit/repository_git_test.rb
@@ -162,7 +162,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
extra_info_heads = @repository.extra_info["heads"].dup
assert_equal NUM_HEAD, extra_info_heads.size
extra_info_heads.delete_if { |x| x == "83ca5fd546063a3c7dc2e568ba3355661a9e2b2c" }
- assert_equal 4, extra_info_heads.size
+ assert_equal NUM_HEAD - 2, extra_info_heads.size
del_revs = [
"83ca5fd546063a3c7dc2e568ba3355661a9e2b2c",
@@ -200,7 +200,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
extra_info_heads = @repository.extra_info["heads"].dup
assert_equal NUM_HEAD, extra_info_heads.size
extra_info_heads.delete_if { |x| x == "83ca5fd546063a3c7dc2e568ba3355661a9e2b2c" }
- assert_equal 4, extra_info_heads.size
+ assert_equal NUM_HEAD - 2, extra_info_heads.size
del_revs = [
"83ca5fd546063a3c7dc2e568ba3355661a9e2b2c",
@@ -233,7 +233,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
@project.reload
h1 = @repository.extra_info["heads"].dup
assert h1.index("1234abcd5678")
- assert_equal 5, h1.size
+ assert_equal NUM_HEAD - 1, h1.size
@repository.fetch_changesets
@project.reload