Sha256: 6df4a2b0b2f5857818b421724b6f15c61206d9aa0e390ca5c665f51d230fc7a3

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

FactoryBot.define do
  factory :work_component_template, class: Ecom::Core::WorkComponentTemplate do
    code { FFaker::Guid.guid }
    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

1 entries across 1 versions & 1 rubygems

Version Path
ecom_core-1.2.15 spec/factories/ecom/core/work_component_templates.rb