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