Sha256: c6aa498dab5b6074f89c958e239feec4faa00fb6beccdaa1d3e6578f649ace7f
Contents?: true
Size: 641 Bytes
Versions: 22
Compression:
Stored size: 641 Bytes
Contents
describe Indico do before do api_key = ENV['INDICO_API_KEY'] private_cloud = 'indico-test' @config = { api_key: api_key, cloud: private_cloud} end it 'should tag text with correct political tags' do expected_keys = Set.new(%w(Conservative Green Liberal Libertarian)) data = 'Guns don\'t kill people. People kill people.' # for mocking: use http to redirect requests to our public cloud endpoint config = @config.clone config["version"] = 1 response = Indico.political(data, config) expect(Set.new(response.keys)).to eql(expected_keys) end end
Version data entries
22 entries across 22 versions & 1 rubygems