scm: git: change extra_report_last_commit type at unit test to string (#12409)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10862 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d00cc4d9b5
commit
921ad01bde
|
@ -220,7 +220,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
|
||||||
def test_keep_extra_report_last_commit_in_clear_changesets
|
def test_keep_extra_report_last_commit_in_clear_changesets
|
||||||
assert_nil @repository.extra_info
|
assert_nil @repository.extra_info
|
||||||
h = {}
|
h = {}
|
||||||
h["extra_report_last_commit"] = 1
|
h["extra_report_last_commit"] = "1"
|
||||||
@repository.merge_extra_info(h)
|
@repository.merge_extra_info(h)
|
||||||
@repository.save
|
@repository.save
|
||||||
@project.reload
|
@project.reload
|
||||||
|
@ -232,7 +232,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
|
||||||
assert_equal NUM_REV, @repository.changesets.count
|
assert_equal NUM_REV, @repository.changesets.count
|
||||||
@repository.send(:clear_changesets)
|
@repository.send(:clear_changesets)
|
||||||
assert_equal 1, @repository.extra_info.size
|
assert_equal 1, @repository.extra_info.size
|
||||||
assert_equal 1, @repository.extra_info["extra_report_last_commit"]
|
assert_equal "1", @repository.extra_info["extra_report_last_commit"]
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_refetch_after_clear_changesets
|
def test_refetch_after_clear_changesets
|
||||||
|
|
Loading…
Reference in New Issue