mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-30 04:09:38 +00: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:
parent
4e8eda64d7
commit
dd1bc04f0c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user