FactoryBot.define do factory :supplier, class: "Comee::Core::Supplier" do sequence(:code) { |n| "#{Faker::Alphanumeric.alpha(number: 8)}-#{n}" } name { Faker::Name.name } address { Faker::Address.full_address } locale { "en" } user currency end end