]> source.dussan.org Git - redmine.git/commitdiff
scm: git: add latin-1 encoding directory to test repository (#5251).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 8 Mar 2011 11:01:51 +0000 (11:01 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 8 Mar 2011 11:01:51 +0000 (11:01 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5060 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/fixtures/repositories/git_repository.tar.gz
test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
test/unit/repository_git_test.rb

index bf2c639a4f45af0f053961ec3368039798c66138..180455eb5aafb3f7476cafece133b88cb39f882c 100644 (file)
Binary files a/test/fixtures/repositories/git_repository.tar.gz and b/test/fixtures/repositories/git_repository.tar.gz differ
index fa0f90aaf73d751bf9d242ecdee3d276d758f32a..ff2f795d64de798ec153294984109fc6798085ea 100644 (file)
@@ -56,7 +56,7 @@ begin
       end
 
       def test_getting_all_revisions
-        assert_equal 20, @adapter.revisions('',nil,nil,:all => true).length
+        assert_equal 21, @adapter.revisions('',nil,nil,:all => true).length
       end
 
       def test_getting_certain_revisions
index bd557aa40ba8c27cae03bde8b5c88bace96c6c19..d1dfd2566242e688bc3ec75ab5cf41599b9a0576 100644 (file)
@@ -46,8 +46,8 @@ class RepositoryGitTest < ActiveSupport::TestCase
       @repository.fetch_changesets
       @repository.reload
 
-      assert_equal 20, @repository.changesets.count
-      assert_equal 30, @repository.changes.count
+      assert_equal 21, @repository.changesets.count
+      assert_equal 33, @repository.changes.count
 
       commit = @repository.changesets.find(:first, :order => 'committed_on ASC')
       assert_equal "Initial import.\nThe repository contains 3 files.", commit.comments
@@ -67,7 +67,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
     def test_fetch_changesets_incremental
       @repository.fetch_changesets
       # Remove the 3 latest changesets
-      @repository.changesets.find(:all, :order => 'committed_on DESC', :limit => 7).each(&:destroy)
+      @repository.changesets.find(:all, :order => 'committed_on DESC', :limit => 8).each(&:destroy)
       @repository.reload
       cs1 = @repository.changesets
       assert_equal 13, cs1.count
@@ -82,7 +82,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
       assert_equal rev_a_committed_on, latest_rev.committed_on
 
       @repository.fetch_changesets
-      assert_equal 20, @repository.changesets.count
+      assert_equal 21, @repository.changesets.count
     end
 
     def test_latest_changesets