diff options
Diffstat (limited to 'test/integration/routing_test.rb')
-rw-r--r-- | test/integration/routing_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb index bcb35b33b..d196c0873 100644 --- a/test/integration/routing_test.rb +++ b/test/integration/routing_test.rb @@ -45,6 +45,15 @@ class RoutingTest < ActionController::IntegrationTest end + context "custom_fields" do + should_route :get, "/custom_fields", :controller => 'custom_fields', :action => 'index' + should_route :get, "/custom_fields/new", :controller => 'custom_fields', :action => 'new' + should_route :post, "/custom_fields", :controller => 'custom_fields', :action => 'create' + should_route :get, "/custom_fields/2/edit", :controller => 'custom_fields', :action => 'edit', :id => 2 + should_route :put, "/custom_fields/2", :controller => 'custom_fields', :action => 'update', :id => 2 + should_route :delete, "/custom_fields/2", :controller => 'custom_fields', :action => 'destroy', :id => 2 + end + context "documents" do should_route :get, "/projects/567/documents", :controller => 'documents', :action => 'index', :project_id => '567' should_route :get, "/projects/567/documents/new", :controller => 'documents', :action => 'new', :project_id => '567' |