mirror of
https://github.com/redmine/redmine.git
synced 2025-11-18 03:00:52 +01:00
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:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user