Fix user gender creation
We use "male" and "female" conditions in scopes.
This commit is contained in:
@@ -8,7 +8,7 @@ section "Creating Users" do
|
||||
password_confirmation: password,
|
||||
confirmed_at: Time.current,
|
||||
terms_of_service: "1",
|
||||
gender: ["Male", "Female"].sample,
|
||||
gender: %w[male female].sample,
|
||||
date_of_birth: rand((Time.current - 80.years)..(Time.current - 16.years)),
|
||||
public_activity: (rand(1..100) > 30)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user