Adds a single controller for users and groups memberships and support for adding multiple projects at once (#11702).

git-svn-id: http://svn.redmine.org/redmine/trunk@13498 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2014-10-23 21:46:40 +00:00
parent ca5946d82e
commit c2e73160da
28 changed files with 571 additions and 343 deletions

View File

@@ -79,20 +79,5 @@ class RoutingUsersTest < ActionDispatch::IntegrationTest
{ :controller => 'users', :action => 'destroy', :id => '44',
:format => 'xml' }
)
assert_routing(
{ :method => 'post', :path => "/users/123/memberships" },
{ :controller => 'users', :action => 'edit_membership',
:id => '123' }
)
assert_routing(
{ :method => 'put', :path => "/users/123/memberships/55" },
{ :controller => 'users', :action => 'edit_membership',
:id => '123', :membership_id => '55' }
)
assert_routing(
{ :method => 'delete', :path => "/users/123/memberships/55" },
{ :controller => 'users', :action => 'destroy_membership',
:id => '123', :membership_id => '55' }
)
end
end