module GdsApi::TestHelpers::ContentStore

def stub_content_store_endpoint(draft = false)

:draft will point to the draft content store if set to true
will include "public"
:private if true, the Cache-Control header will include the "private" directive. By default it
:max_age will set the max-age of the Cache-Control header in the response. Defaults to 900

The following options can be passed in:
Stubs a content item in the content store.
def stub_content_store_endpoint(draft = false)
  draft ? Plek.current.find("draft-content-store") : Plek.current.find("content-store")
end