@@ -215,7 +215,7 class RepositoryGitTest < ActiveSupport::TestCase | |||||
215 | def test_keep_extra_report_last_commit_in_clear_changesets |
|
215 | def test_keep_extra_report_last_commit_in_clear_changesets | |
216 | assert_nil @repository.extra_info |
|
216 | assert_nil @repository.extra_info | |
217 | h = {} |
|
217 | h = {} | |
218 | h["extra_report_last_commit"] = 1 |
|
218 | h["extra_report_last_commit"] = "1" | |
219 | @repository.merge_extra_info(h) |
|
219 | @repository.merge_extra_info(h) | |
220 | @repository.save |
|
220 | @repository.save | |
221 | @project.reload |
|
221 | @project.reload | |
@@ -227,7 +227,7 class RepositoryGitTest < ActiveSupport::TestCase | |||||
227 | assert_equal NUM_REV, @repository.changesets.count |
|
227 | assert_equal NUM_REV, @repository.changesets.count | |
228 | @repository.send(:clear_changesets) |
|
228 | @repository.send(:clear_changesets) | |
229 | assert_equal 1, @repository.extra_info.size |
|
229 | assert_equal 1, @repository.extra_info.size | |
230 | assert_equal 1, @repository.extra_info["extra_report_last_commit"] |
|
230 | assert_equal "1", @repository.extra_info["extra_report_last_commit"] | |
231 | end |
|
231 | end | |
232 |
|
232 | |||
233 | def test_refetch_after_clear_changesets |
|
233 | def test_refetch_after_clear_changesets |
General Comments 0
You need to be logged in to leave comments.
Login now