Sha256: a945c41280987d80df4ec990090542723509483875d445d9c59be863e6ef6696
Contents?: true
Size: 587 Bytes
Versions: 5
Compression:
Stored size: 587 Bytes
Contents
require 'spec_helper' describe Twilio::REST::InstanceResource do it 'should set up an internal reference to the uri and client' do resource = Twilio::REST::InstanceResource.new('some/uri', 'someClient') expect(resource.instance_variable_get('@path')).to eq('some/uri') expect(resource.instance_variable_get('@client')).to eq('someClient') end it 'should set up object properties if passed' do params = {'SomeKey' => 'someValue'} resource = Twilio::REST::InstanceResource.new('uri', 'client', params) expect(resource.some_key).to eq('someValue') end end
Version data entries
5 entries across 5 versions & 1 rubygems