|
@@
-46,8
+46,8
class RepositoryGitTest < ActiveSupport::TestCase
|
|
46
|
@repository.fetch_changesets
|
|
46
|
@repository.fetch_changesets
|
|
47
|
@repository.reload
|
|
47
|
@repository.reload
|
|
48
|
|
|
48
|
|
|
49
|
assert_equal 20, @repository.changesets.count
|
|
49
|
assert_equal 21, @repository.changesets.count
|
|
50
|
assert_equal 30, @repository.changes.count
|
|
50
|
assert_equal 33, @repository.changes.count
|
|
51
|
|
|
51
|
|
|
52
|
commit = @repository.changesets.find(:first, :order => 'committed_on ASC')
|
|
52
|
commit = @repository.changesets.find(:first, :order => 'committed_on ASC')
|
|
53
|
assert_equal "Initial import.\nThe repository contains 3 files.", commit.comments
|
|
53
|
assert_equal "Initial import.\nThe repository contains 3 files.", commit.comments
|
|
@@
-67,7
+67,7
class RepositoryGitTest < ActiveSupport::TestCase
|
|
67
|
def test_fetch_changesets_incremental
|
|
67
|
def test_fetch_changesets_incremental
|
|
68
|
@repository.fetch_changesets
|
|
68
|
@repository.fetch_changesets
|
|
69
|
# Remove the 3 latest changesets
|
|
69
|
# Remove the 3 latest changesets
|
|
70
|
@repository.changesets.find(:all, :order => 'committed_on DESC', :limit => 7).each(&:destroy)
|
|
70
|
@repository.changesets.find(:all, :order => 'committed_on DESC', :limit => 8).each(&:destroy)
|
|
71
|
@repository.reload
|
|
71
|
@repository.reload
|
|
72
|
cs1 = @repository.changesets
|
|
72
|
cs1 = @repository.changesets
|
|
73
|
assert_equal 13, cs1.count
|
|
73
|
assert_equal 13, cs1.count
|
|
@@
-82,7
+82,7
class RepositoryGitTest < ActiveSupport::TestCase
|
|
82
|
assert_equal rev_a_committed_on, latest_rev.committed_on
|
|
82
|
assert_equal rev_a_committed_on, latest_rev.committed_on
|
|
83
|
|
|
83
|
|
|
84
|
@repository.fetch_changesets
|
|
84
|
@repository.fetch_changesets
|
|
85
|
assert_equal 20, @repository.changesets.count
|
|
85
|
assert_equal 21, @repository.changesets.count
|
|
86
|
end
|
|
86
|
end
|
|
87
|
|
|
87
|
|
|
88
|
def test_latest_changesets
|
|
88
|
def test_latest_changesets
|