From d2470f68828436aecda5519ce76c473ea5a9946e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 00:52:41 +0000 Subject: [PATCH 1/2] Bump faraday_middleware from 1.2.0 to 1.2.1 Bumps [faraday_middleware](https://github.com/lostisland/faraday_middleware) from 1.2.0 to 1.2.1. - [Release notes](https://github.com/lostisland/faraday_middleware/releases) - [Commits](https://github.com/lostisland/faraday_middleware/compare/v1.2.0...v1.2.1) --- updated-dependencies: - dependency-name: faraday_middleware dependency-version: 1.2.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 11a0afb26..b79cc884d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -188,22 +188,22 @@ GEM faraday-retry (~> 1.0) ruby2_keywords (>= 0.0.4) faraday-em_http (1.0.0) - faraday-em_synchrony (1.0.0) + faraday-em_synchrony (1.0.1) faraday-excon (1.1.0) faraday-http-cache (2.5.1) faraday (>= 0.8) faraday-httpclient (1.0.1) - faraday-multipart (1.0.4) - multipart-post (~> 2) - faraday-net_http (1.0.1) + faraday-multipart (1.2.0) + multipart-post (~> 2.0) + faraday-net_http (1.0.2) faraday-net_http_persistent (1.2.0) faraday-panoptes (0.4.0) faraday (~> 1.0) faraday_middleware (~> 1.0) faraday-patron (1.0.0) faraday-rack (1.0.0) - faraday-retry (1.0.3) - faraday_middleware (1.2.0) + faraday-retry (1.0.4) + faraday_middleware (1.2.1) faraday (~> 1.0) ffi (1.15.5) flipper (1.3.6) @@ -318,7 +318,7 @@ GEM mock_redis (0.34.0) ruby2_keywords multi_xml (0.6.0) - multipart-post (2.2.3) + multipart-post (2.4.1) nenv (0.3.0) net-http-persistent (4.0.8) connection_pool (>= 2.2.4, < 4) From 048cb339d416b44758522e5c5a03607d220257d3 Mon Sep 17 00:00:00 2001 From: tooyosi Date: Mon, 1 Jun 2026 16:05:18 +0100 Subject: [PATCH 2/2] fix cellect client spec --- spec/services/cellect_client_spec.rb | 2 +- spec/workers/subject_removal_worker_spec.rb | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/spec/services/cellect_client_spec.rb b/spec/services/cellect_client_spec.rb index e4c6a50c5..2754f8943 100644 --- a/spec/services/cellect_client_spec.rb +++ b/spec/services/cellect_client_spec.rb @@ -83,7 +83,7 @@ it 'adds connection middleware for json encoding and decoding' do middleware = described_class.new.connection.builder.handlers - expected = [FaradayMiddleware::EncodeJson, FaradayMiddleware::ParseJson] + expected = [Faraday::Request::Json, Faraday::Response::Json] expect(middleware).to include(*expected) end diff --git a/spec/workers/subject_removal_worker_spec.rb b/spec/workers/subject_removal_worker_spec.rb index 202244f15..bb47902a7 100644 --- a/spec/workers/subject_removal_worker_spec.rb +++ b/spec/workers/subject_removal_worker_spec.rb @@ -19,7 +19,11 @@ def stub_discussions_request(subject_id) stub_request(:get, discussions_url) .with(query: { focus_id: subject_id, focus_type: 'Subject' }) - .to_return(status: 200, body: '{"discussions": []}', headers: {}) + .to_return( + status: 200, + body: '{"discussions": []}', + headers: { 'Content-Type' => 'application/json' } + ) end before do