Sha256: df3ca862b70dc28b1535457be59b69ff76cef1d7f151ebe940d53b99faa0160c

Contents?: true

Size: 430 Bytes

Versions: 61

Compression:

Stored size: 430 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

61 entries across 61 versions & 1 rubygems

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