Sha256: 5307b50e0cfba0b5825be563fd9e32225325feec25a82db97385431e247943a1
Contents?: true
Size: 738 Bytes
Versions: 15
Compression:
Stored size: 738 Bytes
Contents
FactoryBot.define do factory :work_product, class: Ecom::Core::WorkProduct do name { FFaker::Name.name } description { FFaker::Name.name } design_reference_no { FFaker::Guid.guid } dimension { [{ label: 'Length', name: 'length', value: 12 }] } association :product_group association :work_product_template association :project status { Ecom::Core::WorkProduct::NEW } percent_completed { FFaker::Random.rand(1..100) } remark { FFaker::Name.name } association :approver, factory: :user association :supervisor, factory: :user association :quality_controller, factory: :user start_date { 1.day.ago } completion_date { Time.now.next_week } tasks_generated { false } end end
Version data entries
15 entries across 15 versions & 1 rubygems