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.2.5 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.2.4 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.2.3 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.2.2 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.2.1 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.2.0 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.1.28 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.1.27 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.1.26 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.1.25 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.1.24 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.1.23 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.1.22 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.1.21 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.1.20 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.1.19 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.1.18 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.1.17 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.1.16 spec/factories/ecom/core/work_component_templates.rb
ecom_core-1.1.15 spec/factories/ecom/core/work_component_templates.rb