Sha256: c21b2f0ba5691d64d18605efbbda5e90f036fdd20d0f46740c7a8cabf00032b4
Contents?: true
Size: 802 Bytes
Versions: 29
Compression:
Stored size: 802 Bytes
Contents
require 'spec_helper' describe Twilio::REST::SMS::Messages do before do client = double("Client") allow(client).to receive(:post) do {'sid' => 'qwerty' } end allow(client).to receive(:get) do {'sid' => 'qwerty', 'sms_messages' => [] } end @messages = Twilio::REST::SMS::Messages.new('someUri',client) end it 'should warn of deprecation of SMS Messages Create' do expect(@messages).to receive(:warn) @messages.create to: "+1", from: "+2", body: "But Jenny!" end it 'should warn of deprecation of SMS Messages List' do expect(@messages).to receive(:warn) @messages.list to: "+1" end it 'should warn of deprecation of SMS Messages Get' do expect(@messages).to receive(:warn) @messages.get sid: "qwerty" end end
Version data entries
29 entries across 29 versions & 1 rubygems