@@ -23,5 +23,17 class RoutingMembersTest < ActionController::IntegrationTest | |||||
23 | { :method => 'post', :path => "/projects/5234/members/new" }, |
|
23 | { :method => 'post', :path => "/projects/5234/members/new" }, | |
24 | { :controller => 'members', :action => 'new', :id => '5234' } |
|
24 | { :controller => 'members', :action => 'new', :id => '5234' } | |
25 | ) |
|
25 | ) | |
|
26 | assert_routing( | |||
|
27 | { :method => 'post', :path => "/members/edit/5234" }, | |||
|
28 | { :controller => 'members', :action => 'edit', :id => '5234' } | |||
|
29 | ) | |||
|
30 | assert_routing( | |||
|
31 | { :method => 'post', :path => "/members/destroy/5234" }, | |||
|
32 | { :controller => 'members', :action => 'destroy', :id => '5234' } | |||
|
33 | ) | |||
|
34 | assert_routing( | |||
|
35 | { :method => 'post', :path => "/members/autocomplete_for_member/5234" }, | |||
|
36 | { :controller => 'members', :action => 'autocomplete_for_member', :id => '5234' } | |||
|
37 | ) | |||
26 | end |
|
38 | end | |
27 | end |
|
39 | end |
General Comments 0
You need to be logged in to leave comments.
Login now