diff options
-rw-r--r-- | .rubocop_todo.yml | 1 | ||||
-rw-r--r-- | test/unit/repository_git_test.rb | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 89f874f5a..8018e34cd 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1421,7 +1421,6 @@ Style/UnneededSort: - 'lib/redmine/scm/adapters/abstract_adapter.rb' - 'test/functional/issues_controller_test.rb' - 'test/unit/member_test.rb' - - 'test/unit/repository_git_test.rb' # Cop supports --auto-correct. Style/VariableInterpolation: diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb index 05c94b51c..0f5382a41 100644 --- a/test/unit/repository_git_test.rb +++ b/test/unit/repository_git_test.rb @@ -138,7 +138,7 @@ class RepositoryGitTest < ActiveSupport::TestCase assert_equal Time.gm(2007, 12, 14, 9, 22, 52), commit.committed_on assert_equal "2007-12-14".to_date, commit.commit_date assert_equal 3, commit.filechanges.count - change = commit.filechanges.sort_by(&:path).first + change = commit.filechanges.min_by(&:path) assert_equal "README", change.path assert_nil change.from_path assert_equal "A", change.action |