Fix user gender creation

We use "male" and "female" conditions in scopes.
This commit is contained in:
Javi Martín
2018-12-14 18:27:47 +01:00
parent 061549c3c3
commit 99551e048b

View File

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