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