module GdsApi::TestHelpers::PublishingApiV2

def publishing_api_has_lookups(lookup_hash)

Parameters:
  • lookup_hash (Hash) -- Hash with base_path as key, content_id as value.
def publishing_api_has_lookups(lookup_hash)
  url = Plek.current.find('publishing-api') + '/lookup-by-base-path'
  stub_request(:post, url).to_return(body: lookup_hash.to_json)
end