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

Changelog and a minor change on the test title

This commit is contained in:
Rodrigo Flores 2012-04-04 17:27:41 -03:00
parent 857af600f7
commit 07ef99a8f0
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@
* bug fix
* `/users/sign_in` doesn't choke on protected attributes used to select sign in scope (by @Paymium)
* `failed_attempts` is set to zero after any sign in (including via reset password) (by @rodrigoflores)
* Added token expiration on timeout (by @antiarchitect)
== 2.1.0.rc

View file

@ -100,7 +100,7 @@ class TokenAuthenticationTest < ActionController::IntegrationTest
end
end
test 'should not authenticated and reset token when expire_auth_token_on_timeout is set to true, timeoutable is enabled and we have a timed out session' do
test 'should reset token and not authenticate when expire_auth_token_on_timeout is set to true, timeoutable is enabled and we have a timed out session' do
swap Devise, :token_authentication_key => :secret_token, :expire_auth_token_on_timeout => true, :timeout_in => (-1).minute do
user = sign_in_as_new_user_with_token
assert warden.authenticated?(:user)