mirror of
https://github.com/redmine/redmine.git
synced 2025-11-11 15:56:03 +01:00
Ruby 2.7: Fix RuboCop offense Performance/MapCompact (#38134).
git-svn-id: https://svn.redmine.org/redmine/trunk@22055 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1259,7 +1259,7 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
get(:index, :params => {:sort => 'assigned_to'})
|
||||
assert_response :success
|
||||
|
||||
assignees = issues_in_list.map(&:assigned_to).compact
|
||||
assignees = issues_in_list.filter_map(&:assigned_to)
|
||||
assert_equal assignees.sort, assignees
|
||||
assert_select 'table.issues.sort-by-assigned-to.sort-asc'
|
||||
end
|
||||
@@ -1268,7 +1268,7 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
get(:index, :params => {:sort => 'assigned_to:desc'})
|
||||
assert_response :success
|
||||
|
||||
assignees = issues_in_list.map(&:assigned_to).compact
|
||||
assignees = issues_in_list.filter_map(&:assigned_to)
|
||||
assert_equal assignees.sort.reverse, assignees
|
||||
assert_select 'table.issues.sort-by-assigned-to.sort-desc'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user