Sha256: acf981adbe81b05bf3d60abe1755b6bcc5f98336421948c3f94fde104b46da6b
Contents?: true
Size: 777 Bytes
Versions: 4
Compression:
Stored size: 777 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') module WhosGotDirt::Responses::Entity RSpec.describe OpenCorporates, vcr: {cassette_name: 'open_corporates_entity'} do let :response do Faraday.get('https://api.opencorporates.com/companies/search') end let :instance do OpenCorporates.new(response) end describe '#to_a' do it 'should return the results' do expect{instance.to_a}.to_not raise_error end end describe '#count' do it 'should return the number of results' do expect(instance.count).to be > 80_000_000 end end describe '#page' do it 'should return the current page number' do expect(instance.page).to eq(1) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems