FactoryBot.define do factory :equipment_category, class: Ecom::Core::EquipmentCategory do sequence :name do |n| "ECName#{n}" end description { FFaker::Name.name } association :equipment_type end end