From 2f51dc11cfdf9cdbd2c67ec12cf93f4b112646bc Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 25 Oct 2015 08:32:47 +0000 Subject: 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 --- test/integration/routing/custom_fields_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/integration') 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 -- cgit v1.2.3