Commit dd793a00158b5968c0300016df3db67c26a88248
1 parent
f4395fae
Exists in
master
and in
29 other branches
ActionItem78: creating route for change_password
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@637 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
config/routes.rb
... | ... | @@ -19,7 +19,7 @@ ActionController::Routing::Routes.draw do |map| |
19 | 19 | map.connect 'doc', :controller => 'doc' |
20 | 20 | |
21 | 21 | # user account controller |
22 | - map.connect 'account/change_password/:hash', :controller => 'account', :action => 'change_password' | |
22 | + map.connect 'account/change_password/:code', :controller => 'account', :action => 'change_password' | |
23 | 23 | |
24 | 24 | map.connect 'account/:action', :controller => 'account' |
25 | 25 | ... | ... |
test/integration/routing_test.rb
... | ... | @@ -21,6 +21,10 @@ class RoutingTest < ActionController::IntegrationTest |
21 | 21 | assert_routing('/account', :controller => 'account', :action => 'index') |
22 | 22 | end |
23 | 23 | |
24 | + def test_change_password | |
25 | + assert_routing('/account/change_password/90dfhga7sadgd0as6saas', :controller => 'account', :action => 'change_password', :code => '90dfhga7sadgd0as6saas') | |
26 | + end | |
27 | + | |
24 | 28 | def test_comatose_admin |
25 | 29 | assert_routing('/myprofile/ze/cms', :profile => 'ze', :controller => 'cms', :action => 'index') |
26 | 30 | end | ... | ... |