From 9d02159e9e8565c9a627aa792d2e474726ced8e6 Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Mon, 3 Feb 2025 12:26:25 +0000 Subject: [PATCH] Fix lint --- .../bulk_upload/lettings/year2024/row_parser_spec.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/spec/services/bulk_upload/lettings/year2024/row_parser_spec.rb b/spec/services/bulk_upload/lettings/year2024/row_parser_spec.rb index b5f682469..b6ea44040 100644 --- a/spec/services/bulk_upload/lettings/year2024/row_parser_spec.rb +++ b/spec/services/bulk_upload/lettings/year2024/row_parser_spec.rb @@ -1728,16 +1728,7 @@ RSpec.describe BulkUpload::Lettings::Year2024::RowParser do context "when no addresses have a high enough match rating" do before do stub_request(:get, /api\.os\.uk\/search\/places\/v1\/find/) - .to_return( - status: 200, - body: { - results: [ - { DPA: { MATCH: 0.6, BUILDING_NAME: "", POST_TOWN: "", POSTCODE: "AA1 1AA", UPRN: "1" } }, - { DPA: { MATCH: 0.8, BUILDING_NAME: "", POST_TOWN: "", POSTCODE: "BB2 2BB", UPRN: "2" } }, - ], - }.to_json, - headers: {}, - ) + .to_return(status: 200, body: { results: [{ DPA: { MATCH: 0.6, BUILDING_NAME: "", POST_TOWN: "", POSTCODE: "AA1 1AA", UPRN: "1" } }, { DPA: { MATCH: 0.8, BUILDING_NAME: "", POST_TOWN: "", POSTCODE: "BB2 2BB", UPRN: "2" } }] }.to_json, headers: {}) end it "adds address not found errors to address fields only" do