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

Version Path
ecom_core-1.2.31 spec/factories/ecom/core/work_products.rb
ecom_core-1.2.30 spec/factories/ecom/core/work_products.rb
ecom_core-1.2.29 spec/factories/ecom/core/work_products.rb
ecom_core-1.2.28 spec/factories/ecom/core/work_products.rb
ecom_core-1.2.27 spec/factories/ecom/core/work_products.rb
ecom_core-1.2.26 spec/factories/ecom/core/work_products.rb
ecom_core-1.2.24 spec/factories/ecom/core/work_products.rb
ecom_core-1.2.23 spec/factories/ecom/core/work_products.rb
ecom_core-1.2.22 spec/factories/ecom/core/work_products.rb
ecom_core-1.2.21 spec/factories/ecom/core/work_products.rb
ecom_core-1.2.20 spec/factories/ecom/core/work_products.rb
ecom_core-1.2.19 spec/factories/ecom/core/work_products.rb
ecom_core-1.2.18 spec/factories/ecom/core/work_products.rb
ecom_core-1.2.17 spec/factories/ecom/core/work_products.rb
ecom_core-1.2.16 spec/factories/ecom/core/work_products.rb