16849-repository_subversion_test.patch

Takenori TAKAKI, 2021-05-14 05:20

Download (1.22 KB)

View differences:

test/unit/repository_subversion_test.rb
24 24

  
25 25
  include Redmine::I18n
26 26

  
27
  NUM_REV = 12
27
  NUM_REV = 13
28 28

  
29 29
  def setup
30 30
    User.current = nil
......
100 100
      @project.reload
101 101

  
102 102
      assert_equal NUM_REV, @repository.changesets.count
103
      assert_equal 21, @repository.filechanges.count
103
      assert_equal 23, @repository.filechanges.count
104 104
      assert_equal 'Initial import.', @repository.changesets.find_by_revision('1').comments
105 105
    end
106 106

  
......
144 144

  
145 145
      # with path
146 146
      changesets = @repository.latest_changesets('subversion_test/folder', nil)
147
      assert_equal ["12", "10", "9", "7", "6", "5", "2"], changesets.collect(&:revision)
147
      assert_equal ["13", "12", "10", "9", "7", "6", "5", "2"], changesets.collect(&:revision)
148 148

  
149 149
      # with path and revision
150 150
      changesets = @repository.latest_changesets('subversion_test/folder', 8)