diff options
author | Go MAEDA <maeda@farend.jp> | 2019-10-02 00:53:11 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-10-02 00:53:11 +0000 |
commit | 545a050ba318f09890b6baf6934face7e958ea88 (patch) | |
tree | 476d0fe4afb49930f50564f5fd72cbf1a85a48c3 /test/functional/workflows_controller_test.rb | |
parent | fff145a49dac4266a4699de204f835819e42e7ae (diff) | |
download | redmine-545a050ba318f09890b6baf6934face7e958ea88.tar.gz redmine-545a050ba318f09890b6baf6934face7e958ea88.zip |
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
Diffstat (limited to 'test/functional/workflows_controller_test.rb')
-rw-r--r-- | test/functional/workflows_controller_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/workflows_controller_test.rb b/test/functional/workflows_controller_test.rb index 708afa6f9..42c5ae4a3 100644 --- a/test/functional/workflows_controller_test.rb +++ b/test/functional/workflows_controller_test.rb @@ -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]' |