From: Toshi MARUYAMA Date: Sat, 3 Oct 2020 15:37:07 +0000 (+0000) Subject: shorten long line of CustomFieldsControllerTest X-Git-Tag: 4.2.0~700 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dd1bc04f0c9490e59c89a3b3457fb40cafe97c2e;p=redmine.git shorten long line of CustomFieldsControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@20117 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/custom_fields_controller_test.rb b/test/functional/custom_fields_controller_test.rb index 042e409c1..73ffe9812 100644 --- a/test/functional/custom_fields_controller_test.rb +++ b/test/functional/custom_fields_controller_test.rb @@ -417,7 +417,9 @@ class CustomFieldsControllerTest < Redmine::ControllerTest end def custom_field_classes - files = Dir.glob(File.join(Rails.root, 'app/models/*_custom_field.rb')).map {|f| File.basename(f).sub(/\.rb$/, '') } + 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) assert classes.size > 0 classes