From 3a038f2c73da9e0d998e23cf9245080269293ebd Mon Sep 17 00:00:00 2001 From: Kat Date: Thu, 3 Oct 2024 09:47:35 +0100 Subject: [PATCH] Stub some collection resource requests --- spec/request_helper.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/request_helper.rb b/spec/request_helper.rb index f1f208ec6..e8a6726e9 100644 --- a/spec/request_helper.rb +++ b/spec/request_helper.rb @@ -103,6 +103,9 @@ module RequestHelper address = request.uri.query_values["query"].split(",") { status: 200, body: { results: [{ DPA: { MATCH: 0.9, BUILDING_NAME: "result #{address[0]}", POST_TOWN: "result town or city", POSTCODE: address[1], UPRN: "1" } }] }.to_json, headers: {} } end + + WebMock.stub_request(:head, /https:\/\/core-test-collection-resources\.s3\.amazonaws\.com/) + .to_return(status: 200, body: "", headers: { "Content-Type" => "application/pdf", "Content-Length" => 1000 }) end def self.real_http_requests