Sha256: cec3620f036197d1304b1708e02869aaf080ef499b57b80f15f22e07ff00d823
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 KB
Contents
FactoryBot.define do factory :staff, class: 'Sis::Core::Staff' do end # SINGLE = 'Single'.freeze # MARRIED = 'Married'.freeze # MARITAL_STATUS = [SINGLE, MARRIED].freeze # factory :staff, class: 'Sis::Core::Staff' do # user # job_title { FFaker::Job.title } # job_level { FFaker::Company.position } # department { FFaker::Education.school_name } # date_of_employment { FFaker::Time.date } # salary { [2000, 5500.5, 10_000, 20_000].sample } # remark { FFaker::Lorem.sentence } # mothers_name { FFaker::Name.name } # education_level { FFaker::Education.degree } # phone_number { FFaker::PhoneNumber.phone_number } # place_of_birth { FFaker::Address.city } # marital_status { %w[Single Married].sample } # region { FFaker::Address.city } # zone { FFaker::Address.neighborhood } # wereda { [1, 2, 5, 13].sample } # kebele { [1, 2, 5, 13].sample } # passport_number { FFaker::Guid.guid } # id_number { FFaker::Guid.guid } # emergency_contact_name { FFaker::Name.name } # emergency_contact_phone { FFaker::PhoneNumber.phone_number } # relation_to_emergency_contact do # %w[mother,father,brother,spouse].sample # end # created_at { FFaker::Time.datetime } # updated_at { FFaker::Time.datetime } # end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sis_core-1.0.5 | spec/factories/sis/core/staffs.rb |