Browse Source

Fix lint

pull/2914/head
Manny Dinssa 3 months ago
parent
commit
9d02159e9e
  1. 11
      spec/services/bulk_upload/lettings/year2024/row_parser_spec.rb

11
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

Loading…
Cancel
Save