Sha256: a0c2363202e7ccdd7cceeb0370c24cd353992d61f735f5a8b57bf57e2b952c5d

Contents?: true

Size: 668 Bytes

Versions: 61

Compression:

Stored size: 668 Bytes

Contents

FactoryBot.define do
  factory :work_component, class: 'Ecom::Core::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

61 entries across 61 versions & 1 rubygems

Version Path
ecom_core-1.2.5 spec/factories/ecom/core/work_components.rb
ecom_core-1.2.4 spec/factories/ecom/core/work_components.rb
ecom_core-1.2.3 spec/factories/ecom/core/work_components.rb
ecom_core-1.2.2 spec/factories/ecom/core/work_components.rb
ecom_core-1.2.1 spec/factories/ecom/core/work_components.rb
ecom_core-1.2.0 spec/factories/ecom/core/work_components.rb
ecom_core-1.1.28 spec/factories/ecom/core/work_components.rb
ecom_core-1.1.27 spec/factories/ecom/core/work_components.rb
ecom_core-1.1.26 spec/factories/ecom/core/work_components.rb
ecom_core-1.1.25 spec/factories/ecom/core/work_components.rb
ecom_core-1.1.24 spec/factories/ecom/core/work_components.rb
ecom_core-1.1.23 spec/factories/ecom/core/work_components.rb
ecom_core-1.1.22 spec/factories/ecom/core/work_components.rb
ecom_core-1.1.21 spec/factories/ecom/core/work_components.rb
ecom_core-1.1.20 spec/factories/ecom/core/work_components.rb
ecom_core-1.1.19 spec/factories/ecom/core/work_components.rb
ecom_core-1.1.18 spec/factories/ecom/core/work_components.rb
ecom_core-1.1.17 spec/factories/ecom/core/work_components.rb
ecom_core-1.1.16 spec/factories/ecom/core/work_components.rb
ecom_core-1.1.15 spec/factories/ecom/core/work_components.rb