mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 02:46:13 +01:00
Isolates all API routing tests to a specific test case.
git-svn-id: http://svn.redmine.org/redmine/trunk@13604 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -23,26 +23,14 @@ class RoutingTrackersTest < ActionDispatch::IntegrationTest
|
||||
{ :method => 'get', :path => "/trackers" },
|
||||
{ :controller => 'trackers', :action => 'index' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/trackers.xml" },
|
||||
{ :controller => 'trackers', :action => 'index', :format => 'xml' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'post', :path => "/trackers" },
|
||||
{ :controller => 'trackers', :action => 'create' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'post', :path => "/trackers.xml" },
|
||||
{ :controller => 'trackers', :action => 'create', :format => 'xml' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/trackers/new" },
|
||||
{ :controller => 'trackers', :action => 'new' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/trackers/new.xml" },
|
||||
{ :controller => 'trackers', :action => 'new', :format => 'xml' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/trackers/1/edit" },
|
||||
{ :controller => 'trackers', :action => 'edit', :id => '1' }
|
||||
@@ -52,21 +40,11 @@ class RoutingTrackersTest < ActionDispatch::IntegrationTest
|
||||
{ :controller => 'trackers', :action => 'update',
|
||||
:id => '1' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'put', :path => "/trackers/1.xml" },
|
||||
{ :controller => 'trackers', :action => 'update',
|
||||
:format => 'xml', :id => '1' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'delete', :path => "/trackers/1" },
|
||||
{ :controller => 'trackers', :action => 'destroy',
|
||||
:id => '1' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'delete', :path => "/trackers/1.xml" },
|
||||
{ :controller => 'trackers', :action => 'destroy',
|
||||
:format => 'xml', :id => '1' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/trackers/fields" },
|
||||
{ :controller => 'trackers', :action => 'fields' }
|
||||
|
||||
Reference in New Issue
Block a user