Commit ba81f101 authored by tmaruyama's avatar tmaruyama

scm: git: change extra_report_last_commit type at unit test to string (#12409)

git-svn-id: https://svn.redmine.org/redmine/trunk@10862 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 482bf148
......@@ -220,7 +220,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
def test_keep_extra_report_last_commit_in_clear_changesets
assert_nil @repository.extra_info
h = {}
h["extra_report_last_commit"] = 1
h["extra_report_last_commit"] = "1"
@repository.merge_extra_info(h)
@repository.save
@project.reload
......@@ -232,7 +232,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
assert_equal NUM_REV, @repository.changesets.count
@repository.send(:clear_changesets)
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
def test_refetch_after_clear_changesets
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment