Sha256: 03d23b4a6868ea31608e835dad8b516dc968e6433f428cb256c2ae1787fec3ce
Contents?: true
Size: 594 Bytes
Versions: 1
Compression:
Stored size: 594 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Imis::Api do let(:api) { described_class.new } describe '#imis_id_for' do it 'gets the iMIS ID' do expect(api.imis_id_for('E231625')).to eq('31092') end end 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) end end describe '#with' do it 'sends an update' do expect(api.with(31092) { put('ABC_ASC_Individual_Demog', { 'TotMMS' => 15 }) }).to be_a(Hash) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
usps-imis-api-0.1.2 | spec/lib/imis/api_spec.rb |