Sha256: 5a7777c3ab5f7c82ddb7567743e1866de54425c21d9199c2d210075f500b9688

Contents?: true

Size: 428 Bytes

Versions: 8

Compression:

Stored size: 428 Bytes

Contents

FactoryBot.define do
  factory :work_component_template, class: Ecom::Core::WorkComponentTemplate do
    code { FFaker::Name.name }
    name { FFaker::Name.name }
    description { FFaker::Name.name }
    relative_percentage { FFaker::Random.rand(0..100) }
    dimension { [{ label: 'Length', name: 'length' }, { label: 'Width', name: 'width' }] }
    association :work_product_template
    association :task_template
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ecom_core-1.2.14 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.2.13 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.2.12 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.2.11 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.2.10 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.2.9 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.2.7 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.2.6 spec/factories/ecom/core/work_component_templates.rb