diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-20 18:06:14 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-20 18:06:14 +0000 |
commit | 6d4126f17ecfb053f8050fea67496983a0353383 (patch) | |
tree | 07abb2e2d463fdf6beb5c1356d606a0c41f3974f | |
parent | 599bc450730b91769f878d38b76110ce5c8fbca7 (diff) | |
download | redmine-6d4126f17ecfb053f8050fea67496983a0353383.tar.gz redmine-6d4126f17ecfb053f8050fea67496983a0353383.zip |
Adds routing tests for users and xml format.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4545 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/integration/routing_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb index 78512b04f..4b18e317a 100644 --- a/test/integration/routing_test.rb +++ b/test/integration/routing_test.rb @@ -285,18 +285,23 @@ class RoutingTest < ActionController::IntegrationTest context "users" do should_route :get, "/users", :controller => 'users', :action => 'index' + should_route :get, "/users.xml", :controller => 'users', :action => 'index', :format => 'xml' should_route :get, "/users/44", :controller => 'users', :action => 'show', :id => '44' + should_route :get, "/users/44.xml", :controller => 'users', :action => 'show', :id => '44', :format => 'xml' should_route :get, "/users/current", :controller => 'users', :action => 'show', :id => 'current' + should_route :get, "/users/current.xml", :controller => 'users', :action => 'show', :id => 'current', :format => 'xml' should_route :get, "/users/new", :controller => 'users', :action => 'new' should_route :get, "/users/444/edit", :controller => 'users', :action => 'edit', :id => '444' should_route :get, "/users/222/edit/membership", :controller => 'users', :action => 'edit', :id => '222', :tab => 'membership' should_route :post, "/users", :controller => 'users', :action => 'create' + should_route :post, "/users.xml", :controller => 'users', :action => 'create', :format => 'xml' should_route :post, "/users/123/memberships", :controller => 'users', :action => 'edit_membership', :id => '123' should_route :post, "/users/123/memberships/55", :controller => 'users', :action => 'edit_membership', :id => '123', :membership_id => '55' should_route :post, "/users/567/memberships/12/destroy", :controller => 'users', :action => 'destroy_membership', :id => '567', :membership_id => '12' should_route :put, "/users/444", :controller => 'users', :action => 'update', :id => '444' + should_route :put, "/users/444.xml", :controller => 'users', :action => 'update', :id => '444', :format => 'xml' end # TODO: should they all be scoped under /projects/:project_id ? |