Sha256: e1c2048b298fc64c0862335950704854bebe4decb18b8f1882c4ca1a064208ea

Contents?: true

Size: 799 Bytes

Versions: 3

Compression:

Stored size: 799 Bytes

Contents

FactoryBot.define do
  factory :work_product, class: Ecom::Core::WorkProduct do
    code { FFaker::Name.name }
    name { FFaker::Name.unique.name }
    description { FFaker::Name.name }
    design_reference_no { FFaker::Name.name }
    dimension { [{ label: 'Length', name: 'length', value: 12 }] }
    association :task
    association :work_product_template
    association :project
    assignment_status { :unassigned }
    task_status { :new }
    percent_completed { FFaker::Random.rand(1..100) }
    remark { FFaker::Name.name }
    association :performer, factory: :user
    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

3 entries across 3 versions & 1 rubygems

Version Path
ecom_core-1.2.14 spec/factories/ecom/core/work_products.rb
ecom_core-1.2.13 spec/factories/ecom/core/work_products.rb
ecom_core-1.2.12 spec/factories/ecom/core/work_products.rb