From a74fb09ac0014820b7234ae5ca76c782f32224e7 Mon Sep 17 00:00:00 2001 From: Rachael Booth Date: Thu, 20 Jun 2024 16:38:32 +0100 Subject: [PATCH] Fix lint errors --- .../services/bulk_upload/lettings/year2024/row_parser_spec.rb | 4 ++-- spec/services/bulk_upload/sales/year2024/row_parser_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 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 ce4505631..4df484416 100644 --- a/spec/services/bulk_upload/lettings/year2024/row_parser_spec.rb +++ b/spec/services/bulk_upload/lettings/year2024/row_parser_spec.rb @@ -1590,7 +1590,7 @@ RSpec.describe BulkUpload::Lettings::Year2024::RowParser do context "and an address can be found with 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.7, BUILDING_NAME: "", POST_TOWN: "", POSTCODE: "AA1 1AA", UPRN: "1" } } ] }.to_json, headers: {}) + .to_return(status: 200, body: { results: [{ DPA: { MATCH: 0.7, BUILDING_NAME: "", POST_TOWN: "", POSTCODE: "AA1 1AA", UPRN: "1" } }] }.to_json, headers: {}) end it "does not add errors" do @@ -1619,7 +1619,7 @@ RSpec.describe BulkUpload::Lettings::Year2024::RowParser do context "when no address has 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" } } ] }.to_json, headers: {}) + .to_return(status: 200, body: { results: [{ DPA: { MATCH: 0.6, BUILDING_NAME: "", POST_TOWN: "", POSTCODE: "AA1 1AA", UPRN: "1" } }] }.to_json, headers: {}) end it "adds address not found errors to address fields only" do diff --git a/spec/services/bulk_upload/sales/year2024/row_parser_spec.rb b/spec/services/bulk_upload/sales/year2024/row_parser_spec.rb index 6b0b68eff..abe47688d 100644 --- a/spec/services/bulk_upload/sales/year2024/row_parser_spec.rb +++ b/spec/services/bulk_upload/sales/year2024/row_parser_spec.rb @@ -984,7 +984,7 @@ RSpec.describe BulkUpload::Sales::Year2024::RowParser do context "and an address can be found with 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.7, BUILDING_NAME: "", POST_TOWN: "", POSTCODE: "AA1 1AA", UPRN: "1" } } ] }.to_json, headers: {}) + .to_return(status: 200, body: { results: [{ DPA: { MATCH: 0.7, BUILDING_NAME: "", POST_TOWN: "", POSTCODE: "AA1 1AA", UPRN: "1" } }] }.to_json, headers: {}) end it "does not add errors" do @@ -1013,7 +1013,7 @@ RSpec.describe BulkUpload::Sales::Year2024::RowParser do context "when no address has 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" } } ] }.to_json, headers: {}) + .to_return(status: 200, body: { results: [{ DPA: { MATCH: 0.6, BUILDING_NAME: "", POST_TOWN: "", POSTCODE: "AA1 1AA", UPRN: "1" } }] }.to_json, headers: {}) end it "adds address not found errors to address fields only" do