1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -28,12 +28,11 begin | |||||
28 | end |
|
28 | end | |
29 |
|
29 | |||
30 | def test_branches |
|
30 | def test_branches | |
31 |
assert_equal |
|
31 | assert_equal @adapter.branches, ['master', 'test-latin-1', 'test_branch'] | |
32 | @adapter.branches |
|
|||
33 | end |
|
32 | end | |
34 |
|
33 | |||
35 | def test_getting_all_revisions |
|
34 | def test_getting_all_revisions | |
36 |
assert_equal |
|
35 | assert_equal 16, @adapter.revisions('',nil,nil,:all => true).length | |
37 | end |
|
36 | end | |
38 |
|
37 | |||
39 | def test_getting_certain_revisions |
|
38 | def test_getting_certain_revisions |
@@ -38,8 +38,8 class RepositoryGitTest < ActiveSupport::TestCase | |||||
38 | @repository.fetch_changesets |
|
38 | @repository.fetch_changesets | |
39 | @repository.reload |
|
39 | @repository.reload | |
40 |
|
40 | |||
41 |
assert_equal |
|
41 | assert_equal 16, @repository.changesets.count | |
42 |
assert_equal |
|
42 | assert_equal 25, @repository.changes.count | |
43 |
|
43 | |||
44 | commit = @repository.changesets.find(:first, :order => 'committed_on ASC') |
|
44 | commit = @repository.changesets.find(:first, :order => 'committed_on ASC') | |
45 | assert_equal "Initial import.\nThe repository contains 3 files.", commit.comments |
|
45 | assert_equal "Initial import.\nThe repository contains 3 files.", commit.comments | |
@@ -59,7 +59,7 class RepositoryGitTest < ActiveSupport::TestCase | |||||
59 | def test_fetch_changesets_incremental |
|
59 | def test_fetch_changesets_incremental | |
60 | @repository.fetch_changesets |
|
60 | @repository.fetch_changesets | |
61 | # Remove the 3 latest changesets |
|
61 | # Remove the 3 latest changesets | |
62 |
@repository.changesets.find(:all, :order => 'committed_on DESC', :limit => |
|
62 | @repository.changesets.find(:all, :order => 'committed_on DESC', :limit => 3).each(&:destroy) | |
63 | @repository.reload |
|
63 | @repository.reload | |
64 | cs1 = @repository.changesets |
|
64 | cs1 = @repository.changesets | |
65 | assert_equal 13, cs1.count |
|
65 | assert_equal 13, cs1.count | |
@@ -74,7 +74,7 class RepositoryGitTest < ActiveSupport::TestCase | |||||
74 | assert_equal rev_a_committed_on, latest_rev.committed_on |
|
74 | assert_equal rev_a_committed_on, latest_rev.committed_on | |
75 |
|
75 | |||
76 | @repository.fetch_changesets |
|
76 | @repository.fetch_changesets | |
77 |
assert_equal |
|
77 | assert_equal 16, @repository.changesets.count | |
78 | end |
|
78 | end | |
79 |
|
79 | |||
80 | def test_find_changeset_by_name |
|
80 | def test_find_changeset_by_name |
General Comments 0
You need to be logged in to leave comments.
Login now