Sha256: cfd96bb000a273467b7310ea921878a06727998cec5d6d78e3c14296b8ff0860
Contents?: true
Size: 479 Bytes
Versions: 2
Compression:
Stored size: 479 Bytes
Contents
require 'helper' describe YellowApi::Client::FindDealer do let(:apikey) { ENV['YELLOW_API_KEY'] } before do @client = YellowApi::Client.new(apikey: apikey, uid: 'asdf') @client.sandbox_enabled = true end describe '.find_dealer' do subject { @client.find_dealer(6_418_182, pgLen: 1) } it 'should return the correct parent business' do expect(subject.listings.first.parentId).to eq '6418182' 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/find_dealer_spec.rb |
yellow-api-wrapper-0.0.1 | spec/yellow_api/find_dealer_spec.rb |