Test, you shall pass!
This commit is contained in:
parent
85f2f88c59
commit
2ab1086b80
|
@ -179,7 +179,7 @@ class DatabaseAuthenticatableTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
test 'required_fields should be encryptable_password and the login when the login is on authentication_keys' do
|
||||
swap User, :authentication_keys => [:login] do
|
||||
swap Devise, :authentication_keys => [:login] do
|
||||
assert_equal Devise::Models::DatabaseAuthenticatable.required_fields(User).sort, [
|
||||
:encrypted_password,
|
||||
:login
|
||||
|
|
Loading…
Reference in New Issue