mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
20 lines
547 B
Ruby
20 lines
547 B
Ruby
# frozen_string_literal: true
|
|
|
|
Fabricator(:collection) do
|
|
account { Fabricate.build(:account) }
|
|
name { sequence(:name) { |i| "Collection ##{i}" } }
|
|
description 'People to follow'
|
|
local true
|
|
sensitive false
|
|
discoverable true
|
|
end
|
|
|
|
Fabricator(:remote_collection, from: :collection) do
|
|
account { Fabricate.build(:remote_account) }
|
|
local false
|
|
description nil
|
|
description_html '<p>People to follow</p>'
|
|
uri { sequence(:uri) { |i| "https://example.com/collections/#{i}" } }
|
|
original_number_of_items 0
|
|
end
|