Fix linting issues

This commit is contained in:
Claire 2026-06-09 21:53:09 +02:00
parent 0bd2330164
commit 8c50d2fb5e

View File

@ -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