@@ -51,9 +51,9 class RoutingTest < ActionController::IntegrationTest | |||||
51 | should_route :get, "/documents/22", :controller => 'documents', :action => 'show', :id => '22' |
|
51 | should_route :get, "/documents/22", :controller => 'documents', :action => 'show', :id => '22' | |
52 | should_route :get, "/documents/22/edit", :controller => 'documents', :action => 'edit', :id => '22' |
|
52 | should_route :get, "/documents/22/edit", :controller => 'documents', :action => 'edit', :id => '22' | |
53 |
|
53 | |||
54 |
should_route :post, "/projects/567/documents |
|
54 | should_route :post, "/projects/567/documents", :controller => 'documents', :action => 'create', :project_id => '567' | |
55 |
should_route :p |
|
55 | should_route :put, "/documents/22", :controller => 'documents', :action => 'update', :id => '22' | |
56 |
should_route : |
|
56 | should_route :delete, "/documents/22", :controller => 'documents', :action => 'destroy', :id => '22' | |
57 | end |
|
57 | end | |
58 |
|
58 | |||
59 | context "groups" do |
|
59 | context "groups" do |
General Comments 0
You need to be logged in to leave comments.
Login now