FactoryBot.define do factory :unit_of_charge, class: 'Mks::Rate::UnitOfCharge' do name { FFaker::Name.unique.name } unit_variables { { 'meter': 'float', 'day': 'float' } } end end