Resourcified enumerations.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8189 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-12-11 10:26:12 +00:00
parent 1ad16c2238
commit 0471de41ff
10 changed files with 71 additions and 60 deletions
+9
View File
@@ -66,6 +66,15 @@ class RoutingTest < ActionController::IntegrationTest
should_route :post, "/documents/22/add_attachment", :controller => 'documents', :action => 'add_attachment', :id => '22'
end
context "roles" do
should_route :get, "/enumerations", :controller => 'enumerations', :action => 'index'
should_route :get, "/enumerations/new", :controller => 'enumerations', :action => 'new'
should_route :post, "/enumerations", :controller => 'enumerations', :action => 'create'
should_route :get, "/enumerations/2/edit", :controller => 'enumerations', :action => 'edit', :id => 2
should_route :put, "/enumerations/2", :controller => 'enumerations', :action => 'update', :id => 2
should_route :delete, "/enumerations/2", :controller => 'enumerations', :action => 'destroy', :id => 2
end
context "groups" do
should_route :post, "/groups/567/users", :controller => 'groups', :action => 'add_users', :id => '567'