Sha256: 36cca72a44b6e1bffbbba03ffa9fdcde6aa09a440b31a7bff587b61de2a6e82e

Contents?: true

Size: 439 Bytes

Versions: 2

Compression:

Stored size: 439 Bytes

Contents

require 'helper'

describe YellowApi::Client::GetTypeAhead do
  let(:apikey) { ENV['YELLOW_API_KEY'] }

  before do
    @client = YellowApi::Client.new(apikey: apikey, uid: 'asdf')
    @client.sandbox_enabled = true
  end

  describe '.get_type_ahead' do
    subject { @client.get_type_ahead('au', :what) }
    it 'should return suggestions' do
      expect(subject.length).to be > 0
    end

    it { is_expected.to be_a Hash }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yellow-api-wrapper-0.0.2 spec/yellow_api/get_type_ahead_spec.rb
yellow-api-wrapper-0.0.1 spec/yellow_api/get_type_ahead_spec.rb