FactoryBot.define do factory :unit_of_measure, class: Ecom::Core::UnitOfMeasure do code { FFaker::Name.name } name { FFaker::Name.name } description { FFaker::Name.name } end end