Resourcified custom fields.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8144 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-12-09 22:58:30 +00:00
parent 877fbc15da
commit b127f9157d
10 changed files with 108 additions and 28 deletions
+9
View File
@@ -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'