spec/rest/instance_resource_spec.rb in twilio-ruby-3.11.5 vs spec/rest/instance_resource_spec.rb in twilio-ruby-3.11.6

- old
+ new

@@ -1,15 +1,15 @@ 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('@path').should == 'some/uri' - resource.instance_variable_get('@client').should == '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) - resource.some_key.should == 'someValue' + expect(resource.some_key).to eq('someValue') end end