FactoryBot.define do factory :equipment, class: 'Mks::Edm::Equipment' do code { FFaker::Name.name } name { FFaker::Name.name } description { FFaker::Name.name } minimum_acquisition_time { 2.0 } association :equipment_category end end