summaryrefslogtreecommitdiffstats
path: root/test/integration/routing/custom_fields_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/routing/custom_fields_test.rb')
-rw-r--r--test/integration/routing/custom_fields_test.rb7
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