# frozen_string_literal: true Fabricator(:collection_item) do collection { Fabricate.build(:collection) } account { Fabricate.build(:account) } position 1 state :accepted end Fabricator(:unverified_remote_collection_item, from: :collection_item) do account nil state :pending object_uri { Fabricate.build(:remote_account).uri } approval_uri { sequence(:uri) { |i| "https://example.com/authorizations/#{i}" } } end