FactoryBot.define do factory :task, class: 'Ecom::Core::Task' do code { FFaker::Name.name } name { FFaker::Name.name } description { FFaker::Name.name } ancestry { FFaker::Name.name } association :project association :task_template end end