Sha256: ba7c847fb07804968859294f8d205a0a813ac1bfdfa361f84452401de5399cc2

Contents?: true

Size: 1.05 KB

Versions: 22

Compression:

Stored size: 1.05 KB

Contents

require 'spec_helper'

describe Twilio::REST::Trunking::Trunk do

  before do
    @trunk = Twilio::REST::Trunking::Trunk.new('someUri', 'someClient')
  end

  it 'sets up a credential lists resources object' do
    expect(@trunk).to respond_to(:credential_lists)
    expect(@trunk.credential_lists.instance_variable_get('@path')).to eq(
      'someUri/CredentialLists'
    )
  end

  it 'sets up a ip access control lists resources object' do
    expect(@trunk).to respond_to(:ip_access_control_lists)
    expect(@trunk.ip_access_control_lists.instance_variable_get('@path')).to eq(
      'someUri/IpAccessControlLists'
    )
  end

  it 'sets up a origination urls resources object' do
    expect(@trunk).to respond_to(:origination_urls)
    expect(@trunk.origination_urls.instance_variable_get('@path')).to eq(
      'someUri/OriginationUrls'
    )
  end

  it 'sets up a phone numbers resources object' do
    expect(@trunk).to respond_to(:phone_numbers)
    expect(@trunk.phone_numbers.instance_variable_get('@path')).to eq(
      'someUri/PhoneNumbers'
    )
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

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