module GdsApi::TestHelpers::PublishingApiV2
def publishing_api_has_linkables(linkables, document_type:)
-
linkables(Array) --
def publishing_api_has_linkables(linkables, document_type:) url = PUBLISHING_API_V2_ENDPOINT + "/linkables?document_type=#{document_type}" stub_request(:get, url).to_return(status: 200, body: linkables.to_json, headers: {}) end