FactoryBot.define do factory :equipment, class: Ecom::Core::Equipment do name { FFaker::Name.name } description { FFaker::Name.name } minimum_acquisition_time { 10 } brands { ['Brand I', 'Brand II', 'Brand III'] } components { ['Component I', 'Component II', 'Component III'] } association :equipment_category end end