Sha256: 025748f38f7c242845d00fc64e78f3026102e930046e05c426363e5d4cc5e024

Contents?: true

Size: 413 Bytes

Versions: 61

Compression:

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

61 entries across 61 versions & 1 rubygems

Version Path
ecom_core-1.2.5 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.4 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.3 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.2 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.1 spec/factories/ecom/core/task_templates.rb
ecom_core-1.2.0 spec/factories/ecom/core/task_templates.rb
ecom_core-1.1.28 spec/factories/ecom/core/task_templates.rb
ecom_core-1.1.27 spec/factories/ecom/core/task_templates.rb
ecom_core-1.1.26 spec/factories/ecom/core/task_templates.rb
ecom_core-1.1.25 spec/factories/ecom/core/task_templates.rb
ecom_core-1.1.24 spec/factories/ecom/core/task_templates.rb
ecom_core-1.1.23 spec/factories/ecom/core/task_templates.rb
ecom_core-1.1.22 spec/factories/ecom/core/task_templates.rb
ecom_core-1.1.21 spec/factories/ecom/core/task_templates.rb
ecom_core-1.1.20 spec/factories/ecom/core/task_templates.rb
ecom_core-1.1.19 spec/factories/ecom/core/task_templates.rb
ecom_core-1.1.18 spec/factories/ecom/core/task_templates.rb
ecom_core-1.1.17 spec/factories/ecom/core/task_templates.rb
ecom_core-1.1.16 spec/factories/ecom/core/task_templates.rb
ecom_core-1.1.15 spec/factories/ecom/core/task_templates.rb