mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 05:45:49 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user