nas/spec/fabricators/circle_account_fabricator.rb

7 lines
234 B
Ruby

# frozen_string_literal: true
Fabricator(:circle_account) do
circle { Fabricate(:circle) }
account { Fabricate(:account) }
before_create { |circle_account, _| circle_account.account.follow!(circle_account.circle.account) }
end