end
def test_branches
- assert_equal ['latin-1-path-encoding', 'master', 'test-latin-1', 'test_branch'],
- @adapter.branches
+ assert_equal @adapter.branches, ['master', 'test-latin-1', 'test_branch']
end
def test_getting_all_revisions
- assert_equal 21, @adapter.revisions('',nil,nil,:all => true).length
+ assert_equal 16, @adapter.revisions('',nil,nil,:all => true).length
end
def test_getting_certain_revisions
@repository.fetch_changesets
@repository.reload
- assert_equal 21, @repository.changesets.count
- assert_equal 31, @repository.changes.count
+ assert_equal 16, @repository.changesets.count
+ assert_equal 25, @repository.changes.count
commit = @repository.changesets.find(:first, :order => 'committed_on ASC')
assert_equal "Initial import.\nThe repository contains 3 files.", commit.comments
def test_fetch_changesets_incremental
@repository.fetch_changesets
# Remove the 3 latest changesets
- @repository.changesets.find(:all, :order => 'committed_on DESC', :limit => 8).each(&:destroy)
+ @repository.changesets.find(:all, :order => 'committed_on DESC', :limit => 3).each(&:destroy)
@repository.reload
cs1 = @repository.changesets
assert_equal 13, cs1.count
assert_equal rev_a_committed_on, latest_rev.committed_on
@repository.fetch_changesets
- assert_equal 21, @repository.changesets.count
+ assert_equal 16, @repository.changesets.count
end
def test_find_changeset_by_name