require 'factory_bot'

FactoryBot.define do
  factory :financial_transaction_class do
    sequence(:name) { |n| Faker::Lorem.characters(number: rand(2..12)) + " ##{n}" }
  end

  factory :financial_transaction_type do
    financial_transaction_class
    sequence(:name) { |n| Faker::Lorem.words(number: rand(2..4)).join(' ') + " ##{n}" }
  end
end
