Sha256: 434d4f1735f225b8921bf6ea6bea1f06031c17380d28d6b4794adcd5c36ac98d
Contents?: true
Size: 929 Bytes
Versions: 7
Compression:
Stored size: 929 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 it 'should warn of deprecation of SMS Messages total' do expect(@messages).to receive(:warn) @messages.total end end
Version data entries
7 entries across 7 versions & 1 rubygems