mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 13:55:52 +01:00
Use should_route in routing tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@13608 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -17,17 +17,9 @@
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
|
||||
class RoutingProjectEnumerationsTest < ActionDispatch::IntegrationTest
|
||||
class RoutingProjectEnumerationsTest < Redmine::RoutingTest
|
||||
def test_project_enumerations
|
||||
assert_routing(
|
||||
{ :method => 'put', :path => "/projects/64/enumerations" },
|
||||
{ :controller => 'project_enumerations', :action => 'update',
|
||||
:project_id => '64' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'delete', :path => "/projects/64/enumerations" },
|
||||
{ :controller => 'project_enumerations', :action => 'destroy',
|
||||
:project_id => '64' }
|
||||
)
|
||||
should_route 'PUT /projects/foo/enumerations' => 'project_enumerations#update', :project_id => 'foo'
|
||||
should_route 'DELETE /projects/foo/enumerations' => 'project_enumerations#destroy', :project_id => 'foo'
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user