mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-22 21:28:01 -05:00
Required fields on token_authenticatable
This commit is contained in:
@@ -46,4 +46,10 @@ class TokenAuthenticatableTest < ActiveSupport::TestCase
|
||||
user = User.find_for_token_authentication(:auth_token => {'$ne' => user1.authentication_token})
|
||||
assert_nil user
|
||||
end
|
||||
|
||||
test 'required_fields should contain the fields that Devise uses' do
|
||||
assert_equal Devise::Models::TokenAuthenticatable::ModuleMethods.required_fields.sort, [
|
||||
:authentication_token
|
||||
]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user