Sha256: dc7300597e6f0e7b5859fb661da5c85cc91c34f3740a4eab230513cbe06e2c73
Contents?: true
Size: 671 Bytes
Versions: 3
Compression:
Stored size: 671 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 } 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ecom_core-1.2.34 | spec/factories/ecom/core/work_products.rb |
ecom_core-1.2.33 | spec/factories/ecom/core/work_products.rb |
ecom_core-1.2.32 | spec/factories/ecom/core/work_products.rb |