Change the quote revocation REST API endpoint to return updated quote post (#35677)

This commit is contained in:
Claire
2025-08-05 11:42:58 +02:00
committed by GitHub
parent 9c0a10f662
commit 1fd3510b32
2 changed files with 7 additions and 1 deletions

View File

@@ -108,6 +108,12 @@ RSpec.describe 'API V1 Statuses Quotes' do
expect(response)
.to have_http_status(200)
expect(response.content_type)
.to start_with('application/json')
expect(response.parsed_body)
.to match(
a_hash_including(id: quote.status.id.to_s, quote: a_hash_including(state: 'revoked'))
)
end
end