Sha256: 86d8672ee0cbb7bf596c8f906b29bae2777120d66cec8cd0656749b3a7879e7a
Contents?: true
Size: 768 Bytes
Versions: 1
Compression:
Stored size: 768 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_package 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ecom_core-1.2.25 | spec/factories/ecom/core/work_products.rb |