This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/spec/fabricators/account_pin_fabricator.rb

8 lines
205 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
Fabricator(:account_pin) do
2023-03-04 08:12:09 -08:00
account
target_account(fabricator: :account)
before_create { |account_pin, _| account_pin.account.follow!(account_pin.target_account) }
end