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