From dd1bc04f0c9490e59c89a3b3457fb40cafe97c2e Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 3 Oct 2020 15:37:07 +0000 Subject: [PATCH] shorten long line of CustomFieldsControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@20117 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/custom_fields_controller_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5