Sha256: b3cc5feb80afd0af045770f78857c1dabaa8c30f9e89f315a9c2f719b19f932e

Contents?: true

Size: 574 Bytes

Versions: 2

Compression:

Stored size: 574 Bytes

Contents

require 'helper'

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

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

  describe '.get_business_details' do
    subject { @client.get_business_details('Ile-du-Prince-Edouard', 'Co-operators-The', 6_418_182, city: 'Calgary') }
    it 'returns the correct business' do
      expect(subject.id).to eq '6418182'
    end

    it 'returns the correct format' do
      expect(subject).to be_a Hash
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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