module GdsApi::TestHelpers::LicenceApplication
def stub_licence_exists(identifier, licence)
def stub_licence_exists(identifier, licence) licence = licence.to_json unless licence.is_a?(String) stub_request(:get, "#{LICENCE_APPLICATION_ENDPOINT}/api/licence/#{identifier}") .with(headers: GdsApi::JsonClient.default_request_headers) .to_return(status: 200, body: licence) end