Sha256: f3e4152d11f3b09c849ddf821cfb29ba9bc670fb96d7d386000a007df0b09cba

Contents?: true

Size: 507 Bytes

Versions: 7

Compression:

Stored size: 507 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
    @call.should respond_to(:recordings)
    @call.recordings.instance_variable_get('@path').should == 'someUri/Recordings'
  end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
twilio-ruby-3.11.5 spec/rest/call_spec.rb
twilio-ruby-3.11.4 spec/rest/call_spec.rb
twilio-ruby-3.11.3 spec/rest/call_spec.rb
twilio-ruby-3.11.1 spec/rest/call_spec.rb
twilio-ruby-3.11.0 spec/rest/call_spec.rb
twilio-ruby-3.10.1 spec/rest/call_spec.rb
twilio-ruby-3.10.0 spec/rest/call_spec.rb