Sha256: 5eee9328a664ae999a06243e374fe247754a22451e563480ea3c9e491c110eeb

Contents?: true

Size: 570 Bytes

Versions: 3

Compression:

Stored size: 570 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')
    resource.instance_variable_get('@uri').should == 'some/uri'
    resource.instance_variable_get('@client').should == 'someClient'
  end

  it 'should set up object properties if passed' do
    params = {'SomeKey' => 'someValue'}
    resource = Twilio::REST::InstanceResource.new('uri', 'client', params)
    resource.some_key.should == 'someValue'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
twilio-ruby-3.9.0 spec/rest/instance_resource_spec.rb
twilio-ruby-3.8.0 spec/rest/instance_resource_spec.rb
twilio-ruby-3.7.1 spec/rest/instance_resource_spec.rb