module GdsApi::TestHelpers::PublishingApiV2

def stub_publishing_api_discard_draft(content_id)

Parameters:
  • content_id (UUID) --
def stub_publishing_api_discard_draft(content_id)
  url = PUBLISHING_API_V2_ENDPOINT + "/content/#{content_id}/discard-draft"
  stub_request(:post, url).to_return(status: 200, headers: { "Content-Type" => "application/json; charset=utf-8" })
end