From 8c50d2fb5e80ef3f1d7e7a1eb2dfa33bed4c416e Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 9 Jun 2026 21:53:09 +0200 Subject: [PATCH] Fix linting issues --- spec/requests/api/v1/statuses_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/requests/api/v1/statuses_spec.rb b/spec/requests/api/v1/statuses_spec.rb index 20d9fa0c1b..4b962eab5d 100644 --- a/spec/requests/api/v1/statuses_spec.rb +++ b/spec/requests/api/v1/statuses_spec.rb @@ -478,7 +478,7 @@ RSpec.describe '/api/v1/statuses' do expect(response).to have_http_status(200) expect(response.content_type) .to start_with('application/json') - expect(response.parsed_body[:content]).to match(/Hello world/) + expect(response.parsed_body[:content]).to include('Hello world') expect(response.parsed_body[:local_only]).to be true end end @@ -492,7 +492,7 @@ RSpec.describe '/api/v1/statuses' do expect(response).to have_http_status(200) expect(response.content_type) .to start_with('application/json') - expect(response.parsed_body[:content]).to match(/Hello world/) + expect(response.parsed_body[:content]).to include('Hello world') expect(response.parsed_body[:local_only]).to be false end end @@ -506,7 +506,7 @@ RSpec.describe '/api/v1/statuses' do expect(response).to have_http_status(200) expect(response.content_type) .to start_with('application/json') - expect(response.parsed_body[:content]).to match(/Hello world/) + expect(response.parsed_body[:content]).to include('Hello world') expect(response.parsed_body[:local_only]).to be false end end @@ -521,7 +521,7 @@ RSpec.describe '/api/v1/statuses' do expect(response).to have_http_status(200) expect(response.content_type) .to start_with('application/json') - expect(response.parsed_body[:content]).to match(/Hello world/) + expect(response.parsed_body[:content]).to include('Hello world') expect(response.parsed_body[:local_only]).to be true end end