Fix RuboCop offense Performance/MapMethodChain (#37247).

git-svn-id: https://svn.redmine.org/redmine/trunk@22280 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2023-08-23 09:05:20 +00:00
parent 86c5d7814f
commit 21a6fc71d6
12 changed files with 29 additions and 29 deletions

View File

@@ -597,7 +597,7 @@ class CustomFieldsControllerTest < Redmine::ControllerTest
files =
Dir.glob(File.join(Rails.root, 'app/models/*_custom_field.rb')).
map {|f| File.basename(f).sub(/\.rb$/, '')}
classes = files.map(&:classify).map(&:constantize)
classes = files.map {|x| x.classify.constantize}
assert classes.size > 0
classes
end