Sha256: d5ba5b9de60e369d8c02afbc06baf404faad2bc875ec7f7314d90e341443dd32

Contents?: true

Size: 669 Bytes

Versions: 5

Compression:

Stored size: 669 Bytes

Contents

FactoryBot.define do
  factory :work_component, class: 'Ecom::Model::WorkComponent' do
    name { FFaker::Name.name }
    dimension { [{ label: 'Length', name: 'length', value: 10 }] }
    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 }
    association :work_component_template
    association :work_product
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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