diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-01 14:34:44 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-01 14:34:44 +0000 |
commit | a80b909cc8f7f0ca47744093ff0decaaa45f2264 (patch) | |
tree | b9708ef62d92b36f8ed0346f2099b5c589d8e2dc /test/integration | |
parent | cf8d19592995b4ca55b0a113a0645edd5f917345 (diff) | |
download | redmine-a80b909cc8f7f0ca47744093ff0decaaa45f2264.tar.gz redmine-a80b909cc8f7f0ca47744093ff0decaaa45f2264.zip |
Converted issue filters to non-AJAX GET requests (#1965).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5276 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/routing_test.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb index 1198081fc..cb01a891a 100644 --- a/test/integration/routing_test.rb +++ b/test/integration/routing_test.rb @@ -91,14 +91,10 @@ class RoutingTest < ActionController::IntegrationTest should_route :post, "/issues/1/quoted", :controller => 'journals', :action => 'new', :id => '1' should_route :get, "/issues/calendar", :controller => 'calendars', :action => 'show' - should_route :put, "/issues/calendar", :controller => 'calendars', :action => 'update' should_route :get, "/projects/project-name/issues/calendar", :controller => 'calendars', :action => 'show', :project_id => 'project-name' - should_route :put, "/projects/project-name/issues/calendar", :controller => 'calendars', :action => 'update', :project_id => 'project-name' should_route :get, "/issues/gantt", :controller => 'gantts', :action => 'show' - should_route :put, "/issues/gantt", :controller => 'gantts', :action => 'update' should_route :get, "/projects/project-name/issues/gantt", :controller => 'gantts', :action => 'show', :project_id => 'project-name' - should_route :put, "/projects/project-name/issues/gantt", :controller => 'gantts', :action => 'update', :project_id => 'project-name' should_route :get, "/issues/auto_complete", :controller => 'auto_completes', :action => 'issues' @@ -197,6 +193,14 @@ class RoutingTest < ActionController::IntegrationTest should_route :delete, "/projects/1.xml", :controller => 'projects', :action => 'destroy', :id => '1', :format => 'xml' should_route :delete, "/projects/64/enumerations", :controller => 'project_enumerations', :action => 'destroy', :project_id => '64' end + + context "queries" do + should_route :get, "/queries/new", :controller => 'queries', :action => 'new' + should_route :get, "/projects/redmine/queries/new", :controller => 'queries', :action => 'new', :project_id => 'redmine' + + should_route :post, "/queries/new", :controller => 'queries', :action => 'new' + should_route :post, "/projects/redmine/queries/new", :controller => 'queries', :action => 'new', :project_id => 'redmine' + end context "repositories" do should_route :get, "/projects/redmine/repository", :controller => 'repositories', :action => 'show', :id => 'redmine' |