From: Toshi MARUYAMA Date: Thu, 15 Dec 2011 03:47:17 +0000 (+0000) Subject: test: replace "should_route" of "issue reports" to "assert_routing" at integration... X-Git-Tag: 1.4.0~1068 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=64e960ae976e0dfedd6f64ca136a6f39e4ab74a7;p=redmine.git test: replace "should_route" of "issue reports" to "assert_routing" at integration/routing_test.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8218 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb index 2897d5ac3..64381c7cb 100644 --- a/test/integration/routing_test.rb +++ b/test/integration/routing_test.rb @@ -249,9 +249,16 @@ class RoutingTest < ActionController::IntegrationTest should_route :delete, "/relations/23.json", :controller => 'issue_relations', :action => 'destroy', :id => '23', :format => 'json' end - context "issue reports" do - should_route :get, "/projects/567/issues/report", :controller => 'reports', :action => 'issue_report', :id => '567' - should_route :get, "/projects/567/issues/report/assigned_to", :controller => 'reports', :action => 'issue_report_details', :id => '567', :detail => 'assigned_to' + def test_issue_reports + assert_routing( + { :method => 'get', :path => "/projects/567/issues/report" }, + { :controller => 'reports', :action => 'issue_report', :id => '567' } + ) + assert_routing( + { :method => 'get', :path => "/projects/567/issues/report/assigned_to" }, + { :controller => 'reports', :action => 'issue_report_details', + :id => '567', :detail => 'assigned_to' } + ) end def test_members