module GdsApi::TestHelpers::Publisher
def publication_exists_for_snac(snac, details)
def publication_exists_for_snac(snac, details) json = JSON.dump(details) uri = "#{PUBLISHER_ENDPOINT}/publications/#{details['slug']}.json" stub_request(:get, uri).to_return(:body => json, :status => 200) stub_request(:get, uri).with(:query => {:snac => snac.to_s}).to_return(:body => json, :status => 200) return uri end