summaryrefslogtreecommitdiffstats
path: root/test/functional
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
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')
-rw-r--r--test/functional/issues_custom_fields_visibility_test.rb2
-rw-r--r--test/functional/search_custom_fields_visibility_test.rb2
-rw-r--r--test/functional/timelog_custom_fields_visibility_test.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/issues_custom_fields_visibility_test.rb b/test/functional/issues_custom_fields_visibility_test.rb
index 145eb2c4c..d9adcddb1 100644
--- a/test/functional/issues_custom_fields_visibility_test.rb
+++ b/test/functional/issues_custom_fields_visibility_test.rb
@@ -63,7 +63,7 @@ class IssuesCustomFieldsVisibilityTest < 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
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
diff --git a/test/functional/timelog_custom_fields_visibility_test.rb b/test/functional/timelog_custom_fields_visibility_test.rb
index 604dd36c7..fc23ff3fd 100644
--- a/test/functional/timelog_custom_fields_visibility_test.rb
+++ b/test/functional/timelog_custom_fields_visibility_test.rb
@@ -153,7 +153,7 @@ class TimelogCustomFieldsVisibilityTest < 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
end