module GdsApi::TestHelpers::ContentApi
def artefact_for_slug(slug)
def artefact_for_slug(slug) singular_response_base.merge( "title" => titleize_slug(slug), "format" => "guide", "id" => "#{CONTENT_API_ENDPOINT}/#{CGI.escape(slug)}.json", "web_url" => "http://frontend.test.gov.uk/#{slug}", "details" => { "need_ids" => ["100001"], "business_proposition" => false, # To be removed and replaced with proposition tags "format" => "Guide", "alternative_title" => "", "overview" => "This is an overview", "video_summary" => "", "video_url" => "", "parts" => [ { "id" => "overview", "order" => 1, "title" => "Overview", "body" => "<p>Some content</p>" }, { "id" => "#{slug}-part-2", "order" => 2, "title" => "How to make a nomination", "body" => "<p>Some more content</p>" } ] }, "tags" => [], "related" => [] ) end