Sha256: 145005ab8e2a0f21a56ad89730192a35af704b539120f74c94ff3856c88a3377
Contents?: true
Size: 933 Bytes
Versions: 2
Compression:
Stored size: 933 Bytes
Contents
require 'spec_helper' describe Restcomm::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 = Restcomm::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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
restcomm-ruby-1.2.1 | spec/rest/sms/messages_spec.rb |
restcomm-ruby-1.2.0 | spec/rest/sms/messages_spec.rb |