module GdsApi::TestHelpers::Mapit

def stub_mapit_has_areas(area_type, areas)

def stub_mapit_has_areas(area_type, areas)
  stub_request(:get, "#{MAPIT_ENDPOINT}/areas/" + area_type + ".json")
    .to_return(body: areas.to_json, status: 200)
end