module GdsApi::TestHelpers::Panopticon
def stub_panopticon_default_artefact
def stub_panopticon_default_artefact stub_request(:get, %r{\A#{PANOPTICON_ENDPOINT}/artefacts}).to_return { |request| # return a response with only a slug, and set that slug to match the requested artefact slug {:body => JSON.dump("slug" => request.uri.path.split('/').last.chomp('.json'))} } end