##// END OF EJS Templates
test: replace "should_route" of "issue reports" to "assert_routing" at integration/routing_test.rb...
Toshi MARUYAMA -
r8098:64e960ae976e
parent child
Show More
@@ -249,9 +249,16 class RoutingTest < ActionController::IntegrationTest
249 249 should_route :delete, "/relations/23.json", :controller => 'issue_relations', :action => 'destroy', :id => '23', :format => 'json'
250 250 end
251 251
252 context "issue reports" do
253 should_route :get, "/projects/567/issues/report", :controller => 'reports', :action => 'issue_report', :id => '567'
254 should_route :get, "/projects/567/issues/report/assigned_to", :controller => 'reports', :action => 'issue_report_details', :id => '567', :detail => 'assigned_to'
252 def test_issue_reports
253 assert_routing(
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 262 end
256 263
257 264 def test_members
General Comments 0
You need to be logged in to leave comments. Login now