code cleanup: rubocop: fix Style/UnneededSort in test/unit/repository_git_test.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18797 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2019-10-22 11:31:05 +00:00
parent 27dbbee75e
commit abe627bb9c
2 changed files with 1 additions and 2 deletions

View File

@@ -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