Sha256: 64cca668e6df57321a8a2d3e18c21e50835f7fe8b3463d6439d0f124188ba686

Contents?: true

Size: 876 Bytes

Versions: 18

Compression:

Stored size: 876 Bytes

Contents

require 'spec_helper'

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 'single keywords should return the right response' do
        data = "A working API is key to success for our company"

        config = @config.clone
        config["version"] = 2
        response = Indico.keywords(data, config)

        response.keys.each { |key| expect(data.include? key)}
    end

    it 'batch keywords should return the right response' do
        data = "A working API is key to success for our company"

        config = @config.clone
        config["version"] = 2
        response = Indico.keywords([data, data], config)

        expect(response.length).to eql(2)
        response[0].keys.each { |key| expect(data.include? key)}
    end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
indico-0.10.5 spec/keywords_v2_spec.rb
indico-0.10.4 spec/keywords_v2_spec.rb
indico-0.10.3 spec/keywords_v2_spec.rb
indico-0.9.6 spec/keywords_v2_spec.rb
indico-0.10.2 spec/keywords_v2_spec.rb
indico-0.10.1 spec/keywords_v2_spec.rb
indico-0.10.0 spec/keywords_v2_spec.rb
indico-0.9.5 spec/keywords_v2_spec.rb
indico-0.9.4 spec/keywords_v2_spec.rb
indico-0.9.3 spec/keywords_v2_spec.rb
indico-0.9.2 spec/keywords_v2_spec.rb
indico-0.9.1 spec/keywords_v2_spec.rb
indico-0.9.0 spec/keywords_v2_spec.rb
indico-0.8.0 spec/keywords_v2_spec.rb
indico-0.7.1 spec/keywords_v2_spec.rb
indico-0.7.0 spec/keywords_v2_spec.rb
indico-0.6.3 spec/keywords_v2_spec.rb
indico-0.6.2 spec/keywords_v2_spec.rb