summaryrefslogtreecommitdiffstats
path: root/test/functional/search_custom_fields_visibility_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-09-03 07:42:05 +0000
committerGo MAEDA <maeda@farend.jp>2019-09-03 07:42:05 +0000
commitef856653ac19f037dbbcfbd2ade7516b249726ef (patch)
tree1263e602c42146bba49625ceeee8e1f3849b2393 /test/functional/search_custom_fields_visibility_test.rb
parent0a5fb62d6de80f3f89acfef9eb7b1510fd644c52 (diff)
downloadredmine-ef856653ac19f037dbbcfbd2ade7516b249726ef.tar.gz
redmine-ef856653ac19f037dbbcfbd2ade7516b249726ef.zip
Code cleanup: RuboCop: Fix Performance/InefficientHashSearch
git-svn-id: http://svn.redmine.org/redmine/trunk@18423 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/search_custom_fields_visibility_test.rb')
-rw-r--r--test/functional/search_custom_fields_visibility_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/search_custom_fields_visibility_test.rb b/test/functional/search_custom_fields_visibility_test.rb
index f3c1f91bb..9d9da1721 100644
--- a/test/functional/search_custom_fields_visibility_test.rb
+++ b/test/functional/search_custom_fields_visibility_test.rb
@@ -59,7 +59,7 @@ class SearchCustomFieldsVisibilityTest < Redmine::ControllerTest
}
Member.where(:project_id => 1).each do |member|
- member.destroy unless @users_to_test.keys.include?(member.principal)
+ member.destroy unless @users_to_test.key?(member.principal)
end
end