Sha256: b6f55dd071ca1ec471353ddfc41ffde9e757ede615eadb7e414e29293b7d3ed1
Contents?: true
Size: 702 Bytes
Versions: 2
Compression:
Stored size: 702 Bytes
Contents
require 'spec_helper' describe GovDelivery::TMS::InboundSmsMessages do context "creating a new inbound messages list" do let(:client) do double('client') end before do @messages = GovDelivery::TMS::InboundSmsMessages.new(client, '/inbound_messages') end it 'should GET itself' do body = [{body:"HELP", from:"+16125551212", created_at:"a while ago", to:"(651) 433-6258"}, {body:"STOP", from:"+16125551212", created_at:"a while ago", to:"(651) 433-6258"}] expect(@messages.client).to receive(:get).and_return(double('response', body: body, status: 200, headers: {})) @messages.get expect(@messages.collection.length).to eq(2) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
govdelivery-tms-0.8.2 | spec/inbound_sms_messages_spec.rb |
govdelivery-tms-0.8.1 | spec/inbound_sms_messages_spec.rb |