diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-05 16:35:27 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-05 16:35:27 +0000 |
commit | 78bd24c6f738ea946622bfab5b6ea8a2040f5bde (patch) | |
tree | d170a86a5fe88326435223b19b5670fe2c5df439 /test/integration/routing | |
parent | 229b2f8d2af251e1bce0fa11946c41095c19f834 (diff) | |
download | redmine-78bd24c6f738ea946622bfab5b6ea8a2040f5bde.tar.gz redmine-78bd24c6f738ea946622bfab5b6ea8a2040f5bde.zip |
Resourcified project memberships.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8789 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/routing')
-rw-r--r-- | test/integration/routing/members_test.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/integration/routing/members_test.rb b/test/integration/routing/members_test.rb index 169fc62a0..4c78b15c7 100644 --- a/test/integration/routing/members_test.rb +++ b/test/integration/routing/members_test.rb @@ -20,20 +20,20 @@ require File.expand_path('../../../test_helper', __FILE__) class RoutingMembersTest < ActionController::IntegrationTest def test_members assert_routing( - { :method => 'post', :path => "/projects/5234/members/new" }, - { :controller => 'members', :action => 'new', :id => '5234' } + { :method => 'post', :path => "/projects/5234/memberships" }, + { :controller => 'members', :action => 'create', :project_id => '5234' } ) assert_routing( - { :method => 'post', :path => "/members/edit/5234" }, - { :controller => 'members', :action => 'edit', :id => '5234' } + { :method => 'put', :path => "/memberships/5234" }, + { :controller => 'members', :action => 'update', :id => '5234' } ) assert_routing( - { :method => 'post', :path => "/members/destroy/5234" }, + { :method => 'delete', :path => "/memberships/5234" }, { :controller => 'members', :action => 'destroy', :id => '5234' } ) assert_routing( - { :method => 'post', :path => "/members/autocomplete_for_member/5234" }, - { :controller => 'members', :action => 'autocomplete_for_member', :id => '5234' } + { :method => 'get', :path => "/projects/5234/memberships/autocomplete" }, + { :controller => 'members', :action => 'autocomplete', :project_id => '5234' } ) end end |