summaryrefslogtreecommitdiffstats
path: root/test/functional/custom_fields_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-10-12 23:10:25 +0000
committerGo MAEDA <maeda@farend.jp>2023-10-12 23:10:25 +0000
commitb81818100c905df209caf2659faafda80542e16f (patch)
tree1cabf693320dda821fc0990ddfbd6954171d1e7d /test/functional/custom_fields_controller_test.rb
parentcb617673b3e072e9d64c198b45e8a020cc754c70 (diff)
downloadredmine-b81818100c905df209caf2659faafda80542e16f.tar.gz
redmine-b81818100c905df209caf2659faafda80542e16f.zip
Fix RuboCop offense Rails/RedundantActiveRecordAllMethod (#37248).
git-svn-id: https://svn.redmine.org/redmine/trunk@22340 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/custom_fields_controller_test.rb')
-rw-r--r--test/functional/custom_fields_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/custom_fields_controller_test.rb b/test/functional/custom_fields_controller_test.rb
index 8dcc2a2be..b6e4ed6ce 100644
--- a/test/functional/custom_fields_controller_test.rb
+++ b/test/functional/custom_fields_controller_test.rb
@@ -361,7 +361,7 @@ class CustomFieldsControllerTest < Redmine::ControllerTest
assert_select "input[type=checkbox][name=?][value=#{tracker_id}][checked=checked]", 'custom_field[tracker_ids][]'
end
# tracker not checked
- (Tracker.all.pluck(:id) - tracker_ids).each do |tracker_id|
+ (Tracker.pluck(:id) - tracker_ids).each do |tracker_id|
assert_select "input[type=checkbox][name=?][value=#{tracker_id}]", 'custom_field[tracker_ids][]'
end
# project checked
@@ -369,7 +369,7 @@ class CustomFieldsControllerTest < Redmine::ControllerTest
assert_select "input[type=checkbox][name=?][value=#{project_id}][checked=checked]", 'custom_field[project_ids][]'
end
# project not checked
- (Project.all.pluck(:id) - project_ids).each do |project_id|
+ (Project.pluck(:id) - project_ids).each do |project_id|
assert_select "input[type=checkbox][name=?][value=#{project_id}]", 'custom_field[project_ids][]'
end
end