Sha256: ae822b2a87f6e83771c4db80a1c9fac58132b947801559baf9c12841ab60e8d0
Contents?: true
Size: 638 Bytes
Versions: 8
Compression:
Stored size: 638 Bytes
Contents
require 'spec_helper' describe Voog::API::People do let(:client) { voog_client } describe '#people' do before do request_fixture(:get, 'people', fixture: 'people/people') end it 'returns a list of people' do expect(client.people.length).to eql(2) end end describe '#person' do before do request_fixture(:get, 'people/2', fixture: 'people/person') end it 'returns a single person' do expect(client.person(2).name).to eq('api@example.com') end it 'returns a person with the same id as in the request' do expect(client.person(2).id).to eq(2) end end end
Version data entries
8 entries across 8 versions & 1 rubygems