FactoryBot.define do factory :equipment_category, class: 'Mks::Edm::EquipmentCategory' do code { FFaker::Name.name } name { FFaker::Name.name } description { FFaker::Lorem.paragraph } association :equipment_type end end