]> source.dussan.org Git - redmine.git/commitdiff
scm: git: add latin-1 encoding directory test in unit model test (#5251).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 8 Mar 2011 12:08:35 +0000 (12:08 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 8 Mar 2011 12:08:35 +0000 (12:08 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5063 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_git_test.rb

index d1dfd2566242e688bc3ec75ab5cf41599b9a0576..39503e099be59d236fdb2eeb51df5ee2108fb688 100644 (file)
@@ -197,6 +197,20 @@ class RepositoryGitTest < ActiveSupport::TestCase
           ], changesets.collect(&:revision)
     end
 
+    def test_latest_changesets_latin_1_dir
+      if Redmine::Platform.mswin?
+        # TODO
+      else
+        @repository.fetch_changesets
+        @repository.reload
+        changesets = @repository.latest_changesets(
+                    "latin-1-dir/test-#{@char_1}-subdir", '1ca7f5ed')
+        assert_equal [
+              '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127',
+          ], changesets.collect(&:revision)
+      end
+    end
+
     def test_find_changeset_by_name
       @repository.fetch_changesets
       @repository.reload