FactoryBot.define do factory :stakeholder, class: Ecom::Core::Stakeholder do sequence :name do |n| "Stakeholder #{n}" end type_of_business { FFaker::Name.name } address { FFaker::Name.name } license_no { FFaker::Name.name } tin_no { FFaker::Name.name } contact_name { FFaker::Name.name } contact_phone { FFaker::Name.name } contact_email { FFaker::Name.name } association :stakeholder_type end end