From: Toshi MARUYAMA Date: Tue, 8 Mar 2011 11:01:51 +0000 (+0000) Subject: scm: git: add latin-1 encoding directory to test repository (#5251). X-Git-Tag: 1.2.0~782 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=266e33b5f1c1879ae4cb6db7c9eba17149c80532;p=redmine.git scm: git: add latin-1 encoding directory to test repository (#5251). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5060 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/fixtures/repositories/git_repository.tar.gz b/test/fixtures/repositories/git_repository.tar.gz index bf2c639a4..180455eb5 100644 Binary files a/test/fixtures/repositories/git_repository.tar.gz and b/test/fixtures/repositories/git_repository.tar.gz differ diff --git a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb index fa0f90aaf..ff2f795d6 100644 --- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb @@ -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 diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb index bd557aa40..d1dfd2566 100644 --- a/test/unit/repository_git_test.rb +++ b/test/unit/repository_git_test.rb @@ -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