Also need to handle account_migration in AccountDeleter spec

Also backported from #7660
This commit is contained in:
Benjamin Neff 2021-09-19 03:45:52 +02:00
parent fab48ee96d
commit d39a4e3621
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -199,7 +199,8 @@ describe AccountDeleter do
it "has all person association keys accounted for" do
ignored_or_special_ar_person_associations = %i[comments likes poll_participations contacts notification_actors
notifications owner profile pod conversations messages]
notifications owner profile pod conversations messages
account_migration]
all_keys = @account_deletion.normal_ar_person_associates_to_delete + ignored_or_special_ar_person_associations
expect(all_keys.sort_by(&:to_s)).to eq(Person.reflections.keys.sort_by(&:to_s).map(&:to_sym))
end