No need to sort anymore
This commit is contained in:
parent
faf8b01ecc
commit
e3412d4207
|
@ -330,7 +330,7 @@ class ReconfirmableTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
test 'required_fields should contain the fields that Devise uses' do
|
||||
assert_same_content Devise::Models::Confirmable.required_fields(User).sort, [
|
||||
assert_same_content Devise::Models::Confirmable.required_fields(User), [
|
||||
:confirmation_sent_at,
|
||||
:confirmation_token,
|
||||
:confirmed_at
|
||||
|
|
|
@ -172,7 +172,7 @@ class DatabaseAuthenticatableTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
test 'required_fiels should be encryptable_password and the email field by default' do
|
||||
assert_same_content Devise::Models::DatabaseAuthenticatable.required_fields(User).sort, [
|
||||
assert_same_content Devise::Models::DatabaseAuthenticatable.required_fields(User), [
|
||||
:email,
|
||||
:encrypted_password
|
||||
]
|
||||
|
@ -180,7 +180,7 @@ class DatabaseAuthenticatableTest < ActiveSupport::TestCase
|
|||
|
||||
test 'required_fields should be encryptable_password and the login when the login is on authentication_keys' do
|
||||
swap Devise, :authentication_keys => [:login] do
|
||||
assert_same_content Devise::Models::DatabaseAuthenticatable.required_fields(User).sort, [
|
||||
assert_same_content Devise::Models::DatabaseAuthenticatable.required_fields(User), [
|
||||
:encrypted_password,
|
||||
:login
|
||||
]
|
||||
|
|
|
@ -237,7 +237,7 @@ class LockableTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
test 'required_fields should contain the fields that Devise uses' do
|
||||
assert_same_content Devise::Models::Lockable.required_fields(User).sort, [
|
||||
assert_same_content Devise::Models::Lockable.required_fields(User), [
|
||||
:failed_attempts,
|
||||
:unlock_at,
|
||||
:unlock_token
|
||||
|
|
Loading…
Reference in New Issue