mirror of
https://github.com/redmine/redmine.git
synced 2025-11-09 06:46:01 +01:00
Increases number of revisions and fileschanges in test/unit/repository_git_test.rb (#40948).
git-svn-id: https://svn.redmine.org/redmine/trunk@22924 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -30,7 +30,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
|
|||||||
REPOSITORY_UTF8_PATH = Rails.root.join('tmp/test/git_utf8_repository').to_s
|
REPOSITORY_UTF8_PATH = Rails.root.join('tmp/test/git_utf8_repository').to_s
|
||||||
REPOSITORY_UTF8_PATH.tr!('/', "\\") if Redmine::Platform.mswin?
|
REPOSITORY_UTF8_PATH.tr!('/', "\\") if Redmine::Platform.mswin?
|
||||||
|
|
||||||
NUM_REV = 28
|
NUM_REV = 29
|
||||||
NUM_HEAD = 8
|
NUM_HEAD = 8
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@@ -135,7 +135,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
|
|||||||
@project.reload
|
@project.reload
|
||||||
|
|
||||||
assert_equal NUM_REV, @repository.changesets.count
|
assert_equal NUM_REV, @repository.changesets.count
|
||||||
assert_equal 39, @repository.filechanges.count
|
assert_equal 40, @repository.filechanges.count
|
||||||
|
|
||||||
commit = @repository.changesets.find_by_revision("7234cb2750b63f47bff735edc50a1c0a433c2518")
|
commit = @repository.changesets.find_by_revision("7234cb2750b63f47bff735edc50a1c0a433c2518")
|
||||||
assert_equal "7234cb2750b63f47bff735edc50a1c0a433c2518", commit.scmid
|
assert_equal "7234cb2750b63f47bff735edc50a1c0a433c2518", commit.scmid
|
||||||
|
|||||||
Reference in New Issue
Block a user