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
This commit is contained in:
Toshi MARUYAMA 2011-12-15 03:47:17 +00:00
parent f0dd0acbf0
commit 64e960ae97
1 changed files with 10 additions and 3 deletions

View 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