@@ -220,7 +220,7 class RepositoryGitTest < ActiveSupport::TestCase | |||||
220 | def test_keep_extra_report_last_commit_in_clear_changesets |
|
220 | def test_keep_extra_report_last_commit_in_clear_changesets | |
221 | assert_nil @repository.extra_info |
|
221 | assert_nil @repository.extra_info | |
222 | h = {} |
|
222 | h = {} | |
223 | h["extra_report_last_commit"] = 1 |
|
223 | h["extra_report_last_commit"] = "1" | |
224 | @repository.merge_extra_info(h) |
|
224 | @repository.merge_extra_info(h) | |
225 | @repository.save |
|
225 | @repository.save | |
226 | @project.reload |
|
226 | @project.reload | |
@@ -232,7 +232,7 class RepositoryGitTest < ActiveSupport::TestCase | |||||
232 | assert_equal NUM_REV, @repository.changesets.count |
|
232 | assert_equal NUM_REV, @repository.changesets.count | |
233 | @repository.send(:clear_changesets) |
|
233 | @repository.send(:clear_changesets) | |
234 | assert_equal 1, @repository.extra_info.size |
|
234 | assert_equal 1, @repository.extra_info.size | |
235 | assert_equal 1, @repository.extra_info["extra_report_last_commit"] |
|
235 | assert_equal "1", @repository.extra_info["extra_report_last_commit"] | |
236 | end |
|
236 | end | |
237 |
|
237 | |||
238 | def test_refetch_after_clear_changesets |
|
238 | def test_refetch_after_clear_changesets |
General Comments 0
You need to be logged in to leave comments.
Login now