summaryrefslogtreecommitdiffstats
path: root/test/integration/routing
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-09-29 10:08:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-09-29 10:08:30 +0000
commit886284b33f1a670be32ff5fd2f93e76089c4d813 (patch)
tree8aedaabb0fc042b41137516ec9a75936b54f34c9 /test/integration/routing
parent4a36e09d4947425b41dd4d72f6a1a13146922878 (diff)
downloadredmine-886284b33f1a670be32ff5fd2f93e76089c4d813.tar.gz
redmine-886284b33f1a670be32ff5fd2f93e76089c4d813.zip
REST API: custom fields definition (#11159).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12165 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/routing')
-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 748c31fec..4b1a707de 100644
--- a/test/integration/routing/custom_fields_test.rb
+++ b/test/integration/routing/custom_fields_test.rb
@@ -44,4 +44,11 @@ class RoutingCustomFieldsTest < ActionController::IntegrationTest
{ :controller => 'custom_fields', :action => 'destroy', :id => '2' }
)
end
+
+ def test_custom_fields_api
+ assert_routing(
+ { :method => 'get', :path => "/custom_fields.xml" },
+ { :controller => 'custom_fields', :action => 'index', :format => 'xml' }
+ )
+ end
end