Sha256: c9028edc6cc85377e9432eb9ec947820916a8e8b2f84a06ccc223cfb8d953036
Contents?: true
Size: 451 Bytes
Versions: 1
Compression:
Stored size: 451 Bytes
Contents
FactoryBot.define do factory :work_component_template, class: Ecom::Core::WorkComponentTemplate do sequence :code do |n| "WCTCode#{n}" end 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.16 | spec/factories/ecom/core/work_component_templates.rb |