Sha256: 9bb10b225d620cc997bdf215b6729c22ff931da5e79da482c92cedbf83fe2a40

Contents?: true

Size: 814 Bytes

Versions: 36

Compression:

Stored size: 814 Bytes

Contents

require 'spec_helper'

describe Twilio::REST::SMS::Message do

  before do
    client = double("Client")
    allow(client).to receive(:post) do 
      {'sid' => 'qwerty' } 
    end

    allow(client).to receive(:get) do 
      {'sid' => 'qwerty', 'sms_message' => [] } 
    end
    
    allow(client).to receive(:delete) do 
      {'sid' => 'qwerty' } 
    end

    @message = Twilio::REST::SMS::Message.new('someUri',client)
  end
 
  it 'should warn of deprecation of SMS Message Update' do
    expect(@message).to receive(:warn)
    @message.update
  end

  it 'should warn of deprecation of SMS Message Refresh' do
    expect(@message).to receive(:warn)
    @message.refresh
  end

  it 'should warn of deprecation of SMS Message Delete' do
    expect(@message).to receive(:warn)
    @message.delete
  end

end

Version data entries

36 entries across 36 versions & 1 rubygems

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