Makes custom queries available through the REST API (#5737).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6186 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-07-06 16:57:04 +00:00
parent da69f086e7
commit d48ea90876
7 changed files with 113 additions and 4 deletions

View File

@@ -210,6 +210,9 @@ class RoutingTest < ActionController::IntegrationTest
end
context "queries" do
should_route :get, "/queries.xml", :controller => 'queries', :action => 'index', :format => 'xml'
should_route :get, "/queries.json", :controller => 'queries', :action => 'index', :format => 'json'
should_route :get, "/queries/new", :controller => 'queries', :action => 'new'
should_route :get, "/projects/redmine/queries/new", :controller => 'queries', :action => 'new', :project_id => 'redmine'