@@ -45,14 +45,19 class RepositoryDarcsTest < ActiveSupport::TestCase | |||
|
45 | 45 | end |
|
46 | 46 | |
|
47 | 47 | def test_fetch_changesets_incremental |
|
48 | assert_equal 0, @repository.changesets.count | |
|
48 | 49 | @repository.fetch_changesets |
|
50 | @project.reload | |
|
51 | assert_equal NUM_REV, @repository.changesets.count | |
|
52 | ||
|
49 | 53 | # Remove changesets with revision > 3 |
|
50 | 54 | @repository.changesets.find(:all).each {|c| c.destroy if c.revision.to_i > 3} |
|
51 |
@ |
|
|
55 | @project.reload | |
|
52 | 56 | assert_equal 3, @repository.changesets.count |
|
53 | 57 | |
|
54 | 58 | @repository.fetch_changesets |
|
55 | assert_equal 6, @repository.changesets.count | |
|
59 | @project.reload | |
|
60 | assert_equal NUM_REV, @repository.changesets.count | |
|
56 | 61 | end |
|
57 | 62 | |
|
58 | 63 | def test_entries_invalid_revision |
General Comments 0
You need to be logged in to leave comments.
Login now