]> source.dussan.org Git - redmine.git/commitdiff
shorten long line of CustomFieldsControllerTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 3 Oct 2020 15:37:07 +0000 (15:37 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 3 Oct 2020 15:37:07 +0000 (15:37 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20117 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/custom_fields_controller_test.rb

index 042e409c1c93e6fd4ea28424fd2c3537abe480d5..73ffe98122e2747add886fb55cff2bd0938d443d 100644 (file)
@@ -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