diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb index 5586ee43b..6ec619dfd 100644 --- a/test/unit/repository_mercurial_test.rb +++ b/test/unit/repository_mercurial_test.rb @@ -268,8 +268,10 @@ class RepositoryMercurialTest < ActiveSupport::TestCase end def test_previous_nil + assert_equal 0, @repository.changesets.count @repository.fetch_changesets - @repository.reload + @project.reload + assert_equal NUM_REV, @repository.changesets.count %w|0 0885933ad4f6 0885|.each do |r1| changeset = @repository.find_changeset_by_name(r1) assert_nil changeset.previous