Sha256: d2df31a0a334d23c0d45143a3e9cf249eadaf43e723d90a4d53b2c95ff90d9b7
Contents?: true
Size: 601 Bytes
Versions: 2
Compression:
Stored size: 601 Bytes
Contents
require 'spec_helper' describe GovDelivery::TMS::IpawsAcknowledgement do it 'gets IPAWS acknowledgement from client' do client = double(:client) response_body = { "ACK" => "PONG" } ipaws_acknowledgement = GovDelivery::TMS::IpawsAcknowledgement.new(client, '/ipaws/acknowledgement', {}) expect(ipaws_acknowledgement.client).to receive('get').with(ipaws_acknowledgement.href).and_return( double('response', status: 200, body: response_body) ) expect(ipaws_acknowledgement.get).to eq(ipaws_acknowledgement) expect(ipaws_acknowledgement.ACK).to eq("PONG") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
govdelivery-tms-0.8.2 | spec/ipaws_acknowledgement_spec.rb |
govdelivery-tms-0.8.1 | spec/ipaws_acknowledgement_spec.rb |