diff --git a/spec/services/address_client_spec.rb b/spec/services/address_client_spec.rb index 0a222f0c7..cdfa6d672 100644 --- a/spec/services/address_client_spec.rb +++ b/spec/services/address_client_spec.rb @@ -8,7 +8,7 @@ describe AddressClient do end def stub_api_request(body:, status: 200) - stub_request(:get, "https://api.os.uk/search/places/v1/find?key=OS_DATA_KEY&maxresults=10&minmatch=0.4&query=123") + stub_request(:get, "https://api.os.uk/search/places/v1/find?fq=COUNTRY_CODE%3AE&key=OS_DATA_KEY&maxresults=10&minmatch=0.4&query=123") .to_return(status:, body:, headers: {}) end diff --git a/spec/services/uprn_client_spec.rb b/spec/services/uprn_client_spec.rb index 8d5c45ed9..f574be20f 100644 --- a/spec/services/uprn_client_spec.rb +++ b/spec/services/uprn_client_spec.rb @@ -8,7 +8,7 @@ describe UprnClient do end def stub_api_request(body:, status: 200) - stub_request(:get, "https://api.os.uk/search/places/v1/uprn?dataset=DPA,LPI&key=OS_DATA_KEY&uprn=123") + stub_request(:get, "https://api.os.uk/search/places/v1/uprn?dataset=DPA%2CLPI&fq=COUNTRY_CODE%3AE&key=OS_DATA_KEY&uprn=123") .to_return(status:, body:, headers: {}) end