Sha256: e62649e6748caa86db45653047cee6044a9b5cff39f5c563724c9ce9ed536a6e
Contents?: true
Size: 1.52 KB
Versions: 2
Compression:
Stored size: 1.52 KB
Contents
require 'spec_helper' describe Restcomm::REST::Country do before do @country = Restcomm::REST::Country.new('someUri', 'someClient') end it 'sets up a local resources object' do expect(@country).to respond_to(:local) expect(@country.local.instance_variable_get('@path')).to eq('someUri/Local') end it 'sets up a toll_free resources object' do expect(@country).to respond_to(:toll_free) expect(@country.toll_free.instance_variable_get('@path')).to eq( 'someUri/TollFree' ) end it 'sets up a mobile resources object' do expect(@country).to respond_to(:mobile) expect(@country.mobile.instance_variable_get('@path')).to eq( 'someUri/Mobile' ) end end describe Restcomm::REST::NumberType do before do @incoming_phone_numbers = Restcomm::REST::IncomingPhoneNumbers.new( 'someUri', 'someClient' ) end it 'sets up a local resources object' do expect(@incoming_phone_numbers).to respond_to(:local) expect(@incoming_phone_numbers.local.instance_variable_get('@path')).to eq( 'someUri/Local' ) end it 'sets up a toll_free resources object' do expect(@incoming_phone_numbers).to respond_to(:toll_free) expect(@incoming_phone_numbers.toll_free.instance_variable_get('@path')).to( eq('someUri/TollFree') ) end it 'sets up a mobile resources object' do expect(@incoming_phone_numbers).to respond_to(:mobile) expect(@incoming_phone_numbers.mobile.instance_variable_get('@path')).to eq( 'someUri/Mobile' ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
restcomm-ruby-1.2.1 | spec/rest/numbers_spec.rb |
restcomm-ruby-1.2.0 | spec/rest/numbers_spec.rb |