##// END OF EJS Templates
scm: git: add latin-1 encoding directory to test repository (#5251)....
Toshi MARUYAMA -
r4940:266e33b5f1c1
parent child
Show More
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -56,7 +56,7 begin
56 end
56 end
57
57
58 def test_getting_all_revisions
58 def test_getting_all_revisions
59 assert_equal 20, @adapter.revisions('',nil,nil,:all => true).length
59 assert_equal 21, @adapter.revisions('',nil,nil,:all => true).length
60 end
60 end
61
61
62 def test_getting_certain_revisions
62 def test_getting_certain_revisions
@@ -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
General Comments 0
You need to be logged in to leave comments. Login now