diskfloppy.me/spec/support/factories/user_factory.cr
2024-09-13 12:59:16 +01:00

7 lines
185 B
Crystal

class UserFactory < Avram::Factory
def initialize
email "#{sequence("test-email")}@example.com"
encrypted_password Authentic.generate_encrypted_password("password")
end
end