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