Sha256: 5743a19eef3f8f0be06bf16ea2176d44afa06052422688599ae77838feb95e0c

Contents?: true

Size: 802 Bytes

Versions: 5

Compression:

Stored size: 802 Bytes

Contents

FactoryBot.define do
  factory :work_product, class: 'Ecom::Model::WorkProduct' do
    code { FFaker::Name.unique.name }
    name { FFaker::Name.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

5 entries across 5 versions & 1 rubygems

Version Path
ecom_model-2.0.4 spec/factories/ecom/model/work_products.rb
ecom_model-2.0.3 spec/factories/ecom/model/work_products.rb
ecom_model-2.0.2 spec/factories/ecom/model/work_products.rb
ecom_model-2.0.1 spec/factories/ecom/model/work_products.rb
ecom_model-2.0.0 spec/factories/ecom/model/work_products.rb