Sha256: ab73c69a2017118f201e357b14fdf23e12f31d33615dd39463938fc939f9e521

Contents?: true

Size: 410 Bytes

Versions: 2

Compression:

Stored size: 410 Bytes

Contents

FactoryBot.define do
  factory :task_template, class: Ecom::Core::TaskTemplate do
    code { FFaker::Name.name }
    name { FFaker::Name.name }
    description { FFaker::Name.name }
    association :task_template_type

    factory :task_template_with_product_template do
      after :create do |task_template, _|
        create(:work_product_template, task_template: task_template)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ecom_core-1.2.14 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.13 spec/factories/ecom/core/task_templates.rb