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

Version Path
jtable-rails-0.2.5 spec/fabricators/person.rb
jtable-rails-0.2.4 spec/fabricators/person.rb
jtable-rails-0.2.3 spec/fabricators/person.rb
jtable-rails-0.2.2 spec/fabricators/person.rb
jtable-rails-0.2.1 spec/fabricators/person.rb
jtable-rails-0.2.0 spec/fabricators/person.rb
jtable-rails-0.1.4 spec/fabricators/person.rb
jtable-rails-0.1.3 spec/fabricators/person.rb
jtable-rails-0.1.2 spec/fabricators/person.rb
jtable-rails-0.1.1 spec/fabricators/person.rb
jtable-rails-0.1.0 spec/fabricators/person.rb