Test "register"

This commit is contained in:
2023-04-14 01:09:18 +02:00
parent cc857a74bf
commit 5615113b9f
3 changed files with 26 additions and 0 deletions

View File

@@ -18,4 +18,8 @@ class ActiveSupport::TestCase
def random_password
SecureRandom.alphanumeric rand(Rails.configuration.devise.password_length)
end
def random_email
"%s@%s.%s" % (1..3).map { SecureRandom.alphanumeric(rand(1..20)) }
end
end