spec/sms_message_spec.rb in govdelivery-tms-0.10.1 vs spec/sms_message_spec.rb in govdelivery-tms-2.8.3
- old
+ new
@@ -50,10 +50,10 @@
# blank hash prevents the client from doing a GET in the initialize method
@message = GovDelivery::TMS::SmsMessage.new(client, '/messages/99', {})
end
it 'should GET cleanly' do
response = { body: 'processed', recipients: [{ phone: '22345678' }], created_at: 'time' }
- expect(@message.client).to receive('get').with(@message.href).and_return(double('response', status: 200, body: response))
+ expect(@message.client).to receive('get').with(@message.href, {}).and_return(double('response', status: 200, body: response))
@message.get
expect(@message.body).to eq('processed')
expect(@message.created_at).to eq('time')
end
end