Project

General

Profile

Patch #30827 » git_tests.patch

Pavel Rosický, 2019-02-18 18:22

View differences:

unit/lib/redmine/scm/adapters/git_adapter_test.rb (working copy)
76 76
      @adapter.branches.each do |b|
77 77
        brs << b
78 78
      end
79
      assert_equal 6, brs.length
80
      br_issue_8857 = brs[0]
79
      assert_equal 7, brs.length
80
      br_issue_8857 = brs[1]
81 81
      assert_equal 'issue-8857', br_issue_8857.to_s 
82 82
      assert_equal '2a682156a3b6e77a8bf9cd4590e8db757f3c6c78', br_issue_8857.revision
83 83
      assert_equal br_issue_8857.scmid, br_issue_8857.revision
84 84
      assert_equal false, br_issue_8857.is_default
85
      br_latin_1_path = brs[1]
85
      br_latin_1_path = brs[2]
86 86
      assert_equal 'latin-1-path-encoding', br_latin_1_path.to_s 
87 87
      assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', br_latin_1_path.revision
88 88
      assert_equal br_latin_1_path.scmid, br_latin_1_path.revision
89 89
      assert_equal false, br_latin_1_path.is_default
90
      br_master = brs[2]
90
      br_master = brs[3]
91 91
      assert_equal 'master', br_master.to_s
92 92
      assert_equal '83ca5fd546063a3c7dc2e568ba3355661a9e2b2c', br_master.revision
93 93
      assert_equal br_master.scmid, br_master.revision
94 94
      assert_equal false, br_master.is_default
95
      br_master_20120212 = brs[3]
95
      br_master_20120212 = brs[4]
96 96
      assert_equal 'master-20120212', br_master_20120212.to_s
97 97
      assert_equal '83ca5fd546063a3c7dc2e568ba3355661a9e2b2c', br_master_20120212.revision
98 98
      assert_equal br_master_20120212.scmid, br_master_20120212.revision
......
117 117
      assert_equal  [
118 118
            "tag00.lightweight",
119 119
            "tag01.annotated",
120
            "tag02.aufräumen"
120 121
          ], @adapter.tags
121 122
    end
122 123

  
unit/repository_git_test.rb (working copy)
26 26
  REPOSITORY_PATH.gsub!(/\//, "\\") if Redmine::Platform.mswin?
27 27

  
28 28
  NUM_REV = 28
29
  NUM_HEAD = 6
29
  NUM_HEAD = 7
30 30

  
31 31
  FELIX_HEX  = "Felix Sch\xC3\xA4fer".force_encoding('UTF-8')
32 32
  CHAR_1_HEX = "\xc3\x9c".force_encoding('UTF-8')
(3-3/4)