Merge commit 'ffeb5da9912a3b7db0deb8aec429e661ef609c59' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2025-08-05 15:46:33 +02:00
68 changed files with 192 additions and 24 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

View File

@@ -98,7 +98,7 @@ RSpec.describe 'Search API' do
context 'when search raises syntax error' do
before { allow(Search).to receive(:new).and_raise(Mastodon::SyntaxError) }
it 'returns http unprocessable_entity' do
it 'returns http unprocessable_content' do
get '/api/v2/search', headers: headers, params: params
expect(response).to have_http_status(422)