Sha256: a557ee24d3e940688fe56414869ea4933d6cdbb425b26c091c11f1d1d8708854

Contents?: true

Size: 431 Bytes

Versions: 5

Compression:

Stored size: 431 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

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