mirror of
https://github.com/redmine/redmine.git
synced 2025-11-03 20:06:24 +01:00
shorten long line of CustomFieldsControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20117 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user