Sha256: 2e04446e6c32a97324fee2af5f486e29989ecf3f2711421041aeb58cc11689c0
Contents?: true
Size: 1.69 KB
Versions: 12
Compression:
Stored size: 1.69 KB
Contents
require 'spec_helper' describe Twilio::REST::PricingClient do before do @client = Twilio::REST::PricingClient.new('AC123', 'foobar') end it 'should set up a voice resources object' do expect(@client).to respond_to(:voice) expect(@client.voice.instance_variable_get('@path')).to eq( '/v1/Voice' ) end it 'should set up the country list resource on voice' do voice = @client.voice expect(voice).to respond_to(:countries) expect(voice.countries.instance_variable_get('@path')).to eq( '/v1/Voice/Countries' ) end it 'should set up the numbers resource on voice' do voice = @client.voice expect(voice).to respond_to(:numbers) expect(voice.numbers.instance_variable_get('@path')).to eq( '/v1/Voice/Numbers' ) end it 'should set up a phone numbers resource object' do expect(@client).to respond_to(:phone_numbers) expect(@client.phone_numbers.instance_variable_get('@path')).to eq( '/v1/PhoneNumbers' ) end it 'should set up a countries list on phone numbers' do numbers = @client.phone_numbers expect(numbers).to respond_to(:countries) expect(numbers.countries.instance_variable_get('@path')).to eq( '/v1/PhoneNumbers/Countries' ) end it 'should set up a messaging resources object' do expect(@client).to respond_to(:messaging) expect(@client.messaging.instance_variable_get('@path')).to eq( '/v1/Messaging' ) end it 'should set up the country list resource on messaging' do messaging = @client.messaging expect(messaging).to respond_to(:countries) expect(messaging.countries.instance_variable_get('@path')).to eq( '/v1/Messaging/Countries' ) end end
Version data entries
12 entries across 12 versions & 1 rubygems