diff options
Diffstat (limited to 'test/integration/routing/issue_relations_test.rb')
-rw-r--r-- | test/integration/routing/issue_relations_test.rb | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/test/integration/routing/issue_relations_test.rb b/test/integration/routing/issue_relations_test.rb index 502dfbd79..a1a6bd64b 100644 --- a/test/integration/routing/issue_relations_test.rb +++ b/test/integration/routing/issue_relations_test.rb @@ -17,25 +17,11 @@ require File.expand_path('../../../test_helper', __FILE__) -class RoutingIssueRelationsTest < ActionDispatch::IntegrationTest +class RoutingIssueRelationsTest < Redmine::RoutingTest def test_issue_relations - assert_routing( - { :method => 'get', :path => "/issues/1/relations" }, - { :controller => 'issue_relations', :action => 'index', - :issue_id => '1' } - ) - assert_routing( - { :method => 'post', :path => "/issues/1/relations" }, - { :controller => 'issue_relations', :action => 'create', - :issue_id => '1' } - ) - assert_routing( - { :method => 'get', :path => "/relations/23" }, - { :controller => 'issue_relations', :action => 'show', :id => '23' } - ) - assert_routing( - { :method => 'delete', :path => "/relations/23" }, - { :controller => 'issue_relations', :action => 'destroy', :id => '23' } - ) + should_route 'GET /issues/1/relations' => 'issue_relations#index', :issue_id => '1' + should_route 'POST /issues/1/relations' => 'issue_relations#create', :issue_id => '1' + + should_route 'DELETE /relations/23' => 'issue_relations#destroy', :id => '23' end end |