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

Fabricator(:account_migration) do
  account
  target_account { |attrs| Fabricate(:account, also_known_as: [ActivityPub::TagManager.instance.uri_for(attrs[:account])]) }
  acct           { |attrs| attrs[:target_account].acct }
  followers_count 1234
  created_at { 60.days.ago }
end