mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-06 03:01:21 -04:00
Add a test for when a recoverable resource has a non-AR email field
This commit is contained in:
@@ -46,6 +46,10 @@ class ActiveSupport::TestCase
|
||||
Admin.create!(valid_attributes)
|
||||
end
|
||||
|
||||
def create_user_without_email(attributes={})
|
||||
UserWithoutEmail.create!(valid_attributes(attributes))
|
||||
end
|
||||
|
||||
# Execute the block setting the given values and restoring old values after
|
||||
# the block is executed.
|
||||
def swap(object, new_values)
|
||||
|
||||
Reference in New Issue
Block a user