@@ -336,7 +336,7 RedmineApp::Application.routes.draw do | |||||
336 |
|
336 | |||
337 | match 'sys/projects', :to => 'sys#projects', :via => :get |
|
337 | match 'sys/projects', :to => 'sys#projects', :via => :get | |
338 | match 'sys/projects/:id/repository', :to => 'sys#create_project_repository', :via => :post |
|
338 | match 'sys/projects/:id/repository', :to => 'sys#create_project_repository', :via => :post | |
339 | match 'sys/fetch_changesets', :to => 'sys#fetch_changesets', :via => :get |
|
339 | match 'sys/fetch_changesets', :to => 'sys#fetch_changesets', :via => [:get, :post] | |
340 |
|
340 | |||
341 | match 'uploads', :to => 'attachments#upload', :via => :post |
|
341 | match 'uploads', :to => 'attachments#upload', :via => :post | |
342 |
|
342 |
@@ -31,5 +31,9 class RoutingSysTest < ActionController::IntegrationTest | |||||
31 | { :method => 'get', :path => "/sys/fetch_changesets" }, |
|
31 | { :method => 'get', :path => "/sys/fetch_changesets" }, | |
32 | { :controller => 'sys', :action => 'fetch_changesets' } |
|
32 | { :controller => 'sys', :action => 'fetch_changesets' } | |
33 | ) |
|
33 | ) | |
|
34 | assert_routing( | |||
|
35 | { :method => 'post', :path => "/sys/fetch_changesets" }, | |||
|
36 | { :controller => 'sys', :action => 'fetch_changesets' } | |||
|
37 | ) | |||
34 | end |
|
38 | end | |
35 | end |
|
39 | end |
General Comments 0
You need to be logged in to leave comments.
Login now