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

Version Path
twilio-ruby-4.13.0 spec/rest/sms/messages_spec.rb
twilio-ruby-4.12.1 spec/rest/sms/messages_spec.rb
twilio-ruby-4.11.1 spec/rest/sms/messages_spec.rb
twilio-ruby-4.11.0 spec/rest/sms/messages_spec.rb
twilio-ruby-4.10.0.edge spec/rest/sms/messages_spec.rb
twilio-ruby-4.10.0 spec/rest/sms/messages_spec.rb
twilio-ruby-4.9.1 spec/rest/sms/messages_spec.rb
twilio-ruby-4.9.1.edge spec/rest/sms/messages_spec.rb
twilio-ruby-4.9.0 spec/rest/sms/messages_spec.rb
twilio-ruby-4.9.0.edge spec/rest/sms/messages_spec.rb
twilio-ruby-4.8.0 spec/rest/sms/messages_spec.rb
twilio-ruby-4.7.0 spec/rest/sms/messages_spec.rb
twilio-ruby-4.8.3.edge spec/rest/sms/messages_spec.rb
twilio-ruby-4.8.2.edge spec/rest/sms/messages_spec.rb
twilio-ruby-4.8.1.edge spec/rest/sms/messages_spec.rb
twilio-ruby-4.8.0.edge spec/rest/sms/messages_spec.rb
twilio-ruby-4.6.2 spec/rest/sms/messages_spec.rb
twilio-ruby-4.6.1 spec/rest/sms/messages_spec.rb
twilio-ruby-4.6.0 spec/rest/sms/messages_spec.rb
twilio-ruby-4.7.0.edge spec/rest/sms/messages_spec.rb