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
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