@@ -249,9 +249,16 class RoutingTest < ActionController::IntegrationTest | |||||
249 | should_route :delete, "/relations/23.json", :controller => 'issue_relations', :action => 'destroy', :id => '23', :format => 'json' |
|
249 | should_route :delete, "/relations/23.json", :controller => 'issue_relations', :action => 'destroy', :id => '23', :format => 'json' | |
250 | end |
|
250 | end | |
251 |
|
251 | |||
252 |
|
|
252 | def test_issue_reports | |
253 | should_route :get, "/projects/567/issues/report", :controller => 'reports', :action => 'issue_report', :id => '567' |
|
253 | assert_routing( | |
254 | should_route :get, "/projects/567/issues/report/assigned_to", :controller => 'reports', :action => 'issue_report_details', :id => '567', :detail => 'assigned_to' |
|
254 | { :method => 'get', :path => "/projects/567/issues/report" }, | |
|
255 | { :controller => 'reports', :action => 'issue_report', :id => '567' } | |||
|
256 | ) | |||
|
257 | assert_routing( | |||
|
258 | { :method => 'get', :path => "/projects/567/issues/report/assigned_to" }, | |||
|
259 | { :controller => 'reports', :action => 'issue_report_details', | |||
|
260 | :id => '567', :detail => 'assigned_to' } | |||
|
261 | ) | |||
255 | end |
|
262 | end | |
256 |
|
263 | |||
257 | def test_members |
|
264 | def test_members |
General Comments 0
You need to be logged in to leave comments.
Login now