Sha256: f679f804d6780b1e67b0d3bbe356f5d9449b8eb7d514a379073e29810d36f9c9
Contents?: true
Size: 715 Bytes
Versions: 1
Compression:
Stored size: 715 Bytes
Contents
FactoryBot.define do factory :work_product, class: Ecom::Core::WorkProduct do name { FFaker::Name.unique.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 } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ecom_core-1.2.15 | spec/factories/ecom/core/work_products.rb |