You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/spec/fabricators/account_pin_fabricator.rb

8 lines
205 B
Ruby

# 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