From 86627ea2e449cd9413abf252249d8d6961a3f0ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Fourn=C3=A8s?= Date: Mon, 19 Feb 2024 14:35:58 +0100 Subject: [PATCH] Add a missing thread example to the statuses spec (#29278) --- spec/requests/api/v1/statuses_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/requests/api/v1/statuses_spec.rb b/spec/requests/api/v1/statuses_spec.rb index 201674fccdc..a3b84afa261 100644 --- a/spec/requests/api/v1/statuses_spec.rb +++ b/spec/requests/api/v1/statuses_spec.rb @@ -167,6 +167,16 @@ describe '/api/v1/statuses' do expect(response.headers['X-RateLimit-Remaining']).to eq '0' end end + + context 'with missing thread' do + let(:params) { { status: 'Hello world', in_reply_to_id: 0 } } + + it 'returns http not found' do + subject + + expect(response).to have_http_status(404) + end + end end describe 'DELETE /api/v1/statuses/:id' do