spec/lib/imis/api_spec.rb in usps-imis-api-0.1.3 vs spec/lib/imis/api_spec.rb in usps-imis-api-0.2.0
- old
+ new
@@ -13,16 +13,18 @@
describe '#put' do
before { api.imis_id = 31092 }
it 'sends an update' do
- expect(api.put('ABC_ASC_Individual_Demog', { 'TotMMS' => 15 })).to be_a(Hash)
+ expect(api.put_fields('ABC_ASC_Individual_Demog', { 'TotMMS' => 15 })).to be_a(Hash)
end
end
describe '#with' do
it 'sends an update from put' do
- expect(api.with(31092) { put('ABC_ASC_Individual_Demog', { 'TotMMS' => 15 }) }).to be_a(Hash)
+ expect(
+ api.with(31092) { put_fields('ABC_ASC_Individual_Demog', { 'TotMMS' => 15 }) }
+ ).to be_a(Hash)
end
it 'sends an update from update' do
expect(api.with(31092) { update(mm: 15) }.first).to be_a(Hash)
end