mirror of
https://github.com/redmine/redmine.git
synced 2025-11-04 20:35:57 +01:00
Code cleanup: RuboCop: Fix Performance/Count and Performance/Detect.
This change corrects newly detected offenses after updating rubocop-performance to 1.5.0 in r18579. git-svn-id: http://svn.redmine.org/redmine/trunk@18580 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -95,7 +95,7 @@ class WorkflowsControllerTest < Redmine::ControllerTest
|
||||
assert_response :success
|
||||
|
||||
assert_select 'select[name=?][multiple=multiple]', 'role_id[]' do
|
||||
assert_select 'option[selected=selected]', Role.all.select(&:consider_workflow?).count
|
||||
assert_select 'option[selected=selected]', Role.all.count(&:consider_workflow?)
|
||||
end
|
||||
assert_select 'select[name=?]', 'tracker_id[]' do
|
||||
assert_select 'option[selected=selected][value=all]'
|
||||
|
||||
Reference in New Issue
Block a user