Add memorial
attribute to REST API (#23591)
This commit is contained in:
parent
520c73c12f
commit
66f715550e
2 changed files with 17 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue