0
0
Fork 0

Add memorial attribute to REST API (#23591)

This commit is contained in:
Claire 2023-02-14 13:50:55 +01:00 committed by GitHub
parent 520c73c12f
commit 66f715550e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View file

@ -34,4 +34,14 @@ describe REST::AccountSerializer do
expect(subject['roles']).to eq []
end
end
context 'when the account is memorialized' do
before do
account.memorialize!
end
it 'marks it as such' do
expect(subject['memorial']).to be true
end
end
end