about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-02-14 13:50:55 +0100
committerGitHub <noreply@github.com>2023-02-14 13:50:55 +0100
commit66f715550e575129e5d8b093a15aa67527136bd2 (patch)
tree610d812e2e4d59914f39d3804f269bada6868d75 /spec
parent520c73c12fa4f8601166e243b45c6cdda7eba528 (diff)
Add `memorial` attribute to REST API (#23591)
Diffstat (limited to 'spec')
-rw-r--r--spec/serializers/rest/account_serializer_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/serializers/rest/account_serializer_spec.rb b/spec/serializers/rest/account_serializer_spec.rb
index ce29df3a7..5b08d5aca 100644
--- a/spec/serializers/rest/account_serializer_spec.rb
+++ b/spec/serializers/rest/account_serializer_spec.rb
@@ -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