diff options
-rw-r--r-- | config/routes.rb | 2 | ||||
-rw-r--r-- | test/integration/routing/sys_test.rb | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 6be563d3f..c9aea1961 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -336,7 +336,7 @@ RedmineApp::Application.routes.draw do match 'sys/projects', :to => 'sys#projects', :via => :get match 'sys/projects/:id/repository', :to => 'sys#create_project_repository', :via => :post - match 'sys/fetch_changesets', :to => 'sys#fetch_changesets', :via => :get + match 'sys/fetch_changesets', :to => 'sys#fetch_changesets', :via => [:get, :post] match 'uploads', :to => 'attachments#upload', :via => :post diff --git a/test/integration/routing/sys_test.rb b/test/integration/routing/sys_test.rb index 1f69ddcc4..6b9afe63b 100644 --- a/test/integration/routing/sys_test.rb +++ b/test/integration/routing/sys_test.rb @@ -31,5 +31,9 @@ class RoutingSysTest < ActionController::IntegrationTest { :method => 'get', :path => "/sys/fetch_changesets" }, { :controller => 'sys', :action => 'fetch_changesets' } ) + assert_routing( + { :method => 'post', :path => "/sys/fetch_changesets" }, + { :controller => 'sys', :action => 'fetch_changesets' } + ) end end |