diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 11:31:05 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 11:31:05 +0000 |
commit | abe627bb9c2e1fead5cbdffa3c39d124f75b302e (patch) | |
tree | 3e0b517758075214ad1014166c99be32f7a7e852 /test/unit | |
parent | 27dbbee75e9633ab1f597087eab2356c94ded2b0 (diff) | |
download | redmine-abe627bb9c2e1fead5cbdffa3c39d124f75b302e.tar.gz redmine-abe627bb9c2e1fead5cbdffa3c39d124f75b302e.zip |
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
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/repository_git_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |