Sha256: 8eb86d52e6f77b91ef1fa1b74b33802470c2f1e968a3fae3b743d424f514cccf

Contents?: true

Size: 568 Bytes

Versions: 3

Compression:

Stored size: 568 Bytes

Contents

require 'spec_helper'

describe Twilio::REST::Call do
  it 'should set up a recordings resources object' do
    call = Twilio::REST::Call.new('someUri', 'someClient')
    call.respond_to?(:recordings).should == true
    call.recordings.instance_variable_get('@uri').should == 'someUri/Recordings'
  end

  it 'should set up a notifications resources object' do
    call = Twilio::REST::Call.new('someUri', 'someClient')
    call.respond_to?(:notifications).should == true
    call.notifications.instance_variable_get('@uri').should == 'someUri/Notifications'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
twilio-ruby-3.9.0 spec/rest/call_spec.rb
twilio-ruby-3.8.0 spec/rest/call_spec.rb
twilio-ruby-3.7.1 spec/rest/call_spec.rb