]> source.dussan.org Git - redmine.git/commitdiff
scm: git: add latest changesets path encoding test in unit model test (#5251).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 8 Mar 2011 07:41:25 +0000 (07:41 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 8 Mar 2011 07:41:25 +0000 (07:41 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5058 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_git_test.rb

index a39b1ff7366e186f1ee6bbca9a618bea072af7fe..bd557aa40ba8c27cae03bde8b5c88bace96c6c19 100644 (file)
@@ -181,6 +181,20 @@ class RepositoryGitTest < ActiveSupport::TestCase
               '713f4944648826f558cf548222f813dabe7cbb04',
               '61b685fbe55ab05b5ac68402d5720c1a6ac973d1',
           ], changesets.collect(&:revision)
+
+      # latin-1 encoding path
+      changesets = @repository.latest_changesets(
+                    "latin-1-dir/test-#{@char_1}-2.txt", '64f1f3e89')
+      assert_equal [
+              '64f1f3e89ad1cb57976ff0ad99a107012ba3481d',
+              '4fc55c43bf3d3dc2efb66145365ddc17639ce81e',
+          ], changesets.collect(&:revision)
+
+      changesets = @repository.latest_changesets(
+                    "latin-1-dir/test-#{@char_1}-2.txt", '64f1f3e89', 1)
+      assert_equal [
+              '64f1f3e89ad1cb57976ff0ad99a107012ba3481d',
+          ], changesets.collect(&:revision)
     end
 
     def test_find_changeset_by_name