diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-25 08:32:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-25 08:32:47 +0000 |
commit | 2f51dc11cfdf9cdbd2c67ec12cf93f4b112646bc (patch) | |
tree | 0216d3fe5705f74909c477e9fcca56438e0fed5f /test/integration | |
parent | 934a7615c427caf120b5386e62aa159b8d79949f (diff) | |
download | redmine-2f51dc11cfdf9cdbd2c67ec12cf93f4b112646bc.tar.gz redmine-2f51dc11cfdf9cdbd2c67ec12cf93f4b112646bc.zip |
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
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/routing/custom_fields_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/integration/routing/custom_fields_test.rb b/test/integration/routing/custom_fields_test.rb index e0fccb7c6..0fbb10b14 100644 --- a/test/integration/routing/custom_fields_test.rb +++ b/test/integration/routing/custom_fields_test.rb @@ -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 |