Add a test for when a recoverable resource has a non-AR email field

This commit is contained in:
Ed Saunders
2015-12-08 14:32:03 +00:00
parent 4a45eb9899
commit d98e98fe77
6 changed files with 88 additions and 0 deletions

View File

@@ -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)