Fix generated usernames in seeds potentially being too short
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0f3b9f176e
commit
a91ee2bd0a
@ -13,6 +13,7 @@ Sidekiq::Testing.inline! do
|
|||||||
35.times do |n|
|
35.times do |n|
|
||||||
username = Faker::Name.unique.first_name.downcase
|
username = Faker::Name.unique.first_name.downcase
|
||||||
email = Faker::Internet.unique.email
|
email = Faker::Internet.unique.email
|
||||||
|
next if username.length < 3
|
||||||
|
|
||||||
CreateAccount.call(
|
CreateAccount.call(
|
||||||
username: username, domain: "kosmos.org", email: email,
|
username: username, domain: "kosmos.org", email: email,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user