1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Updating routes to use sign_in/sign_out instead of session.

This commit is contained in:
Carlos A. da Silva 2009-10-16 13:44:51 -03:00
parent 3700e9979c
commit 0f174dbf4b
7 changed files with 55 additions and 16 deletions

View file

@ -7,7 +7,7 @@ class RoutesTest < ActionController::TestCase
@request.path = '/users/session'
prepend_path = "#{prepend_path}_" if prepend_path
# No params
# Resource param
assert_equal @controller.send(:"#{prepend_path}#{name}_path", :user),
send(:"#{prepend_path}user_#{name}_path")
assert_equal @controller.send(:"#{prepend_path}#{name}_url", :user),
@ -31,6 +31,7 @@ class RoutesTest < ActionController::TestCase
test 'should alias session to mapped user session' do
test_path_and_url :session
test_path_and_url :session, :new
test_path_and_url :session, :destroy
end
test 'should alias password to mapped user password' do