@@ -422,11 +422,7 class RepositoryMercurialTest < ActiveSupport::TestCase | |||
|
422 | 422 | end |
|
423 | 423 | end |
|
424 | 424 | |
|
425 |
def |
|
|
426 | assert_equal 0, @repository.changesets.count | |
|
427 | @repository.fetch_changesets | |
|
428 | @project.reload | |
|
429 | assert_equal NUM_REV, @repository.changesets.count | |
|
425 | def assert_parents | |
|
430 | 426 | r1 = @repository.changesets.find_by_revision('0') |
|
431 | 427 | assert_equal [], r1.parents |
|
432 | 428 | r2 = @repository.changesets.find_by_revision('1') |
@@ -439,6 +435,15 class RepositoryMercurialTest < ActiveSupport::TestCase | |||
|
439 | 435 | assert_equal "3a330eb32958", r4[0] |
|
440 | 436 | assert_equal "a94b0528f24f", r4[1] |
|
441 | 437 | end |
|
438 | private :assert_parents | |
|
439 | ||
|
440 | def test_parents_short_id | |
|
441 | assert_equal 0, @repository.changesets.count | |
|
442 | @repository.fetch_changesets | |
|
443 | @project.reload | |
|
444 | assert_equal NUM_REV, @repository.changesets.count | |
|
445 | assert_parents | |
|
446 | end | |
|
442 | 447 | |
|
443 | 448 | def test_activities |
|
444 | 449 | c = Changeset.new(:repository => @repository, |
General Comments 0
You need to be logged in to leave comments.
Login now