Sha256: 92ec27bf2748148a0de2c344fed200bd10a1066d109a33e5ce4d12d96b2ac141
Contents?: true
Size: 795 Bytes
Versions: 1
Compression:
Stored size: 795 Bytes
Contents
RSpec.describe 'Integration test' do it 'returns an affiliate with correct data types', :vcr do result = SoapyCake::Admin.new.affiliates(affiliate_id: 16027) expect(result.count).to eq(1) expect(result.first).to include( affiliate_id: 16027, # strings affiliate_name: 'Affiliate Test 1', # booleans hide_offers: false, # hashes and id-params billing_cycle: { billing_cycle_id: 1, billing_cycle_name: 'Weekly' }, # dates date_created: DateTime.new(2014, 4, 28, 10, 52, 15.537), # floats minimum_payment_threshold: '0.0000', ) end it 'raises if there is an error', :vcr do expect do SoapyCake::Admin.new.affiliates(affiliate_id: 'bloops') end.to raise_error(SoapyCake::RequestFailed) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
soapy_cake-1.0.0 | spec/lib/soapy_cake/integration_spec.rb |