Sha256: 774e17f267cab9dff50889182b65095e293c66db8cf2a6e24148870963239bbf

Contents?: true

Size: 525 Bytes

Versions: 5

Compression:

Stored size: 525 Bytes

Contents

require 'spec_helper'

describe Twilio::REST::Call do

  before do
    @call = Twilio::REST::Call.new('someUri', 'someClient')
  end

  it 'sets up a recordings resources object' do
    expect(@call).to respond_to(:recordings)
    expect(@call.recordings.instance_variable_get('@path')).to eq('someUri/Recordings')
  end

  it 'sets up a notifications resources object' do
    expect(@call).to respond_to(:notifications)
    expect(@call.notifications.instance_variable_get('@path')).to eq('someUri/Notifications')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
twilio-ruby-3.12.3 spec/rest/call_spec.rb
twilio-ruby-3.12.2 spec/rest/call_spec.rb
twilio-ruby-3.12.1 spec/rest/call_spec.rb
twilio-ruby-3.12.0 spec/rest/call_spec.rb
twilio-ruby-3.11.6 spec/rest/call_spec.rb