@@ -34,10 +34,11 class RepositoryBazaarTest < ActiveSupport::TestCase | |||||
34 |
|
34 | |||
35 | if File.directory?(REPOSITORY_PATH) |
|
35 | if File.directory?(REPOSITORY_PATH) | |
36 | def test_fetch_changesets_from_scratch |
|
36 | def test_fetch_changesets_from_scratch | |
|
37 | assert_equal 0, @repository.changesets.count | |||
37 | @repository.fetch_changesets |
|
38 | @repository.fetch_changesets | |
38 |
@ |
|
39 | @project.reload | |
39 |
|
40 | |||
40 |
assert_equal |
|
41 | assert_equal NUM_REV, @repository.changesets.count | |
41 | assert_equal 9, @repository.changes.count |
|
42 | assert_equal 9, @repository.changes.count | |
42 | assert_equal 'Initial import', @repository.changesets.find_by_revision('1').comments |
|
43 | assert_equal 'Initial import', @repository.changesets.find_by_revision('1').comments | |
43 | end |
|
44 | end |
General Comments 0
You need to be logged in to leave comments.
Login now