Makes enumerations available through the REST API.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10664 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-10-17 17:29:27 +00:00
parent fcb22595d0
commit d62b90db73
8 changed files with 91 additions and 8 deletions
@@ -43,5 +43,9 @@ class RoutingEnumerationsTest < ActionController::IntegrationTest
{ :method => 'delete', :path => "/enumerations/2" },
{ :controller => 'enumerations', :action => 'destroy', :id => '2' }
)
assert_routing(
{ :method => 'get', :path => "/enumerations/issue_priorities.xml" },
{ :controller => 'enumerations', :action => 'index', :type => 'issue_priorities', :format => 'xml' }
)
end
end