Sha256: 669d5ab374eeb366e54fed6209810fb4b6faf3f0cb46eb34593e10b2473832d3
Contents?: true
Size: 490 Bytes
Versions: 11
Compression:
Stored size: 490 Bytes
Contents
Fabricator(:person) do [:first_name, :last_name, :age, :date_of_birth, :gender, :alive] first_name {Fabricate.sequence(:person_first_name) {|i| "FirstName #{i}"}} last_name {Fabricate.sequence(:person_last_name) {|i| "LastName #{i}"}} age {Fabricate.sequence(:person_age)} date_of_birth {Fabricate.sequence(:person_date_of_birth).years.ago} gender {Fabricate.sequence(:person_gender) {|i| i%2==0 ? "Male" : "Female"}} alive {rand(10).even?} end
Version data entries
11 entries across 11 versions & 1 rubygems