Retrospring/spec/factories/group.rb

9 lines
226 B
Ruby
Raw Normal View History

# frozen_string_literal: true
FactoryBot.define do
factory :group do
sequence(:display_name) { |i| "#{Faker::Internet.username(specifier: 0..12, separators: %w[_])}#{i}" }
user { FactoryBot.build(:user) }
end
end