module GdsApi::TestHelpers::NeedApi

def need_api_has_no_need(need_id)

def need_api_has_no_need(need_id)
  url = NEED_API_ENDPOINT + "/needs/#{need_id}"
  not_found_body = {
    "_response_info" => {"status" => "not_found"},
    "error" => "No need exists with this ID"
  }
  stub_request(:get, url).to_return(
    status: 404,
    body: not_found_body.to_json,
    headers: {}
  )
end