spec/lib/sdk4me/response_spec.rb in 4me-sdk-1.1.5 vs spec/lib/sdk4me/response_spec.rb in 4me-sdk-1.1.6

- old
+ new

@@ -1,10 +1,10 @@ require 'spec_helper' describe Sdk4me::Response do before(:each) do - @client = Sdk4me::Client.new(api_token: 'secret', max_retry_time: -1) + @client = Sdk4me::Client.new(api_token: 'secret', max_retry_time: -1, block_at_rate_limit: false) @person_hash = { addresses:[], contacts:[ {id: 1365, label: 'work', telephone: '7139872946'} ], id: 562, information: 'Info about John.', @@ -20,10 +20,9 @@ time_zone: 'Central Time (US & Canada)' } stub_request(:get, 'https://api.4me.com/v1/me').with(basic_auth: ['secret', 'x']).to_return(body: @person_hash.to_json) @response_hash = @client.get('me') - @client = Sdk4me::Client.new(api_token: 'secret', max_retry_time: -1) @people_array = [ {id: 562, name: 'John', organization: { id: 20, name: 'SDK4ME Institute'}, site: {id: 14, name: 'IT Training Facility'} }, {id: 560, name: 'Lucas', organization: { id: 20, name: 'SDK4ME Institute', office: { name: 'The Office'}}, site: {id: 14, name: 'IT Training Facility'} }, {id: 561, name: 'Sheryl', organization: { id: 20, name: 'SDK4ME Institute'}, site: {id: 14, name: 'IT Training Facility'} } ]