Sha256: d5ba5b9de60e369d8c02afbc06baf404faad2bc875ec7f7314d90e341443dd32
Contents?: true
Size: 669 Bytes
Versions: 5
Compression:
Stored size: 669 Bytes
Contents
FactoryBot.define do factory :work_component, class: 'Ecom::Model::WorkComponent' do name { FFaker::Name.name } dimension { [{ label: 'Length', name: 'length', value: 10 }] } assignment_status { :unassigned } task_status { :new } percent_completed { FFaker::Random.rand(1..100) } remark { FFaker::Name.name } association :performer, factory: :user association :approver, factory: :user association :supervisor, factory: :user association :quality_controller, factory: :user start_date { 1.day.ago } completion_date { Time.now.next_week } association :work_component_template association :work_product end end
Version data entries
5 entries across 5 versions & 1 rubygems