spec/rest/client_spec.rb in twilio-ruby-3.9.0 vs spec/rest/client_spec.rb in twilio-ruby-3.10.0
- old
+ new
@@ -75,17 +75,17 @@
connection.use_ssl?.should == true
end
it 'should set up an accounts resources object' do
twilio = Twilio::REST::Client.new('someSid', 'someToken')
- twilio.respond_to?(:accounts).should == true
- twilio.accounts.instance_variable_get('@uri').should == '/2010-04-01/Accounts'
+ twilio.should respond_to(:accounts)
+ twilio.accounts.instance_variable_get('@path').should == '/2010-04-01/Accounts'
end
it 'should set up an account object with the given sid' do
twilio = Twilio::REST::Client.new('someSid', 'someToken')
- twilio.respond_to?(:account).should == true
- twilio.account.instance_variable_get('@uri').should == '/2010-04-01/Accounts/someSid'
+ twilio.should respond_to(:account)
+ twilio.account.instance_variable_get('@path').should == '/2010-04-01/Accounts/someSid'
end
it 'should convert all parameter names to Twilio-style names' do
twilio = Twilio::REST::Client.new('someSid', 'someToken')
untwilified = {:sms_url => 'someUrl', 'voiceFallbackUrl' => 'anotherUrl',