about summary refs log tree commit diff
path: root/spec/fabricators/account_pin_fabricator.rb
blob: 32a5f3bdb82f4fd0e482ce09d1964ac06e43e114 (plain) (blame)
1
2
3
4
5
6
7
# frozen_string_literal: true

Fabricator(:account_pin) do
  account
  target_account(fabricator: :account)
  before_create { |account_pin, _| account_pin.account.follow!(account_pin.target_account) }
end