diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb index 392ab1af9..206dab856 100644 --- a/test/unit/repository_git_test.rb +++ b/test/unit/repository_git_test.rb @@ -227,8 +227,10 @@ class RepositoryGitTest < ActiveSupport::TestCase end def test_latest_changesets + assert_equal 0, @repository.changesets.count @repository.fetch_changesets - @repository.reload + @project.reload + assert_equal NUM_REV, @repository.changesets.count # with limit changesets = @repository.latest_changesets('', nil, 2) assert_equal 2, changesets.size