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.20 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.19 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.18 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.17 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.16 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.15 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.14 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.13 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.12 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.11 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.10 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.9 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.8 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.7 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.6 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.5 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.4 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.3 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.2 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.0.1 spec/factories/ecom/core/work_component_templates.rb