@@ -82,7 +82,8 ActionController::Routing::Routes.draw do |map| | |||
|
82 | 82 | |
|
83 | 83 | map.with_options :controller => 'gantts', :action => 'show' do |gantts_routes| |
|
84 | 84 | gantts_routes.connect '/projects/:project_id/issues/gantt' |
|
85 | gantts_routes.connect '/issues/gantt' | |
|
85 | gantts_routes.connect '/projects/:project_id/issues/gantt.:format' | |
|
86 | gantts_routes.connect '/issues/gantt.:format' | |
|
86 | 87 | end |
|
87 | 88 | |
|
88 | 89 | map.with_options :controller => 'calendars', :action => 'show' do |calendars_routes| |
@@ -94,7 +94,9 class RoutingTest < ActionController::IntegrationTest | |||
|
94 | 94 | should_route :get, "/projects/project-name/issues/calendar", :controller => 'calendars', :action => 'show', :project_id => 'project-name' |
|
95 | 95 | |
|
96 | 96 | should_route :get, "/issues/gantt", :controller => 'gantts', :action => 'show' |
|
97 | should_route :get, "/issues/gantt.pdf", :controller => 'gantts', :action => 'show', :format => 'pdf' | |
|
97 | 98 | should_route :get, "/projects/project-name/issues/gantt", :controller => 'gantts', :action => 'show', :project_id => 'project-name' |
|
99 | should_route :get, "/projects/project-name/issues/gantt.pdf", :controller => 'gantts', :action => 'show', :project_id => 'project-name', :format => 'pdf' | |
|
98 | 100 | |
|
99 | 101 | should_route :get, "/issues/auto_complete", :controller => 'auto_completes', :action => 'issues' |
|
100 | 102 |
General Comments 0
You need to be logged in to leave comments.
Login now