Sha256: bd482301b2249ea1ccc659fea0ca26cadc4f71c14bdde29649959991b99cdabc
Contents?: true
Size: 667 Bytes
Versions: 4
Compression:
Stored size: 667 Bytes
Contents
require 'spec_helper' describe SiebelDonations::Base do context '.get' do context 'with timeout param set' do it 'passes param to RestClient' do expect(RestClient::Request).to receive(:execute) .with(hash_including(url: SiebelDonations.base_url, timeout: 123)) .and_return(nil) described_class.get('', timeout: 123) end end context 'without timeout param set' do it 'passes default to RestClient' do expect(RestClient::Request).to receive(:execute) .with(hash_including(timeout: 6000)) .and_return(nil) described_class.get('', {}) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
siebel_donations-1.0.15 | spec/base_spec.rb |
siebel_donations-1.0.14 | spec/base_spec.rb |
siebel_donations-1.0.13 | spec/base_spec.rb |
siebel_donations-1.0.12 | spec/base_spec.rb |