]> source.dussan.org Git - redmine.git/commitdiff
test: replace "should_route" of "issue reports" to "assert_routing" at integration...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 15 Dec 2011 03:47:17 +0000 (03:47 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 15 Dec 2011 03:47:17 +0000 (03:47 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8218 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/routing_test.rb

index 2897d5ac3c2cd3802c48d4652d7f8b7f7093af95..64381c7cb7fd64bdc4a47bf629932c0a8ec6d82e 100644 (file)
@@ -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