Sha256: 0af510930b5454d465fceb75d30a557c73ce487f8aa8832a3090223588bdf1cd

Contents?: true

Size: 411 Bytes

Versions: 6

Compression:

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

6 entries across 6 versions & 1 rubygems

Version Path
ecom_core-1.2.12 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.11 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.10 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.9 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.7 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.6 spec/factories/ecom/core/task_templates.rb