mirror of
https://github.com/redmine/redmine.git
synced 2025-11-06 05:16:12 +01:00
Adds Enumeration custom field format (#21060).
Similar to List format but stores possible values as records. git-svn-id: http://svn.redmine.org/redmine/trunk@14745 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -27,4 +27,11 @@ class RoutingCustomFieldsTest < Redmine::RoutingTest
|
||||
should_route 'PUT /custom_fields/2' => 'custom_fields#update', :id => '2'
|
||||
should_route 'DELETE /custom_fields/2' => 'custom_fields#destroy', :id => '2'
|
||||
end
|
||||
|
||||
def test_custom_field_enumerations
|
||||
should_route 'GET /custom_fields/3/enumerations' => 'custom_field_enumerations#index', :custom_field_id => '3'
|
||||
should_route 'POST /custom_fields/3/enumerations' => 'custom_field_enumerations#create', :custom_field_id => '3'
|
||||
should_route 'PUT /custom_fields/3/enumerations' => 'custom_field_enumerations#update_each', :custom_field_id => '3'
|
||||
should_route 'DELETE /custom_fields/3/enumerations/6' => 'custom_field_enumerations#destroy', :custom_field_id => '3', :id => '6'
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user