spec/rest/account_spec.rb in twilio-ruby-3.11.5 vs spec/rest/account_spec.rb in twilio-ruby-3.11.6
- old
+ new
@@ -5,54 +5,54 @@
before do
@account = Twilio::REST::Account.new('someUri', 'someClient')
end
it 'sets up incoming phone numbers resources object' do
- @account.should respond_to(:incoming_phone_numbers)
- @account.incoming_phone_numbers.instance_variable_get('@path').should == 'someUri/IncomingPhoneNumbers'
+ expect(@account).to respond_to(:incoming_phone_numbers)
+ expect(@account.incoming_phone_numbers.instance_variable_get('@path')).to eq('someUri/IncomingPhoneNumbers')
end
it 'sets up an available phone numbers resources object' do
- @account.should respond_to(:available_phone_numbers)
- @account.available_phone_numbers.instance_variable_get('@path').should == 'someUri/AvailablePhoneNumbers'
+ expect(@account).to respond_to(:available_phone_numbers)
+ expect(@account.available_phone_numbers.instance_variable_get('@path')).to eq('someUri/AvailablePhoneNumbers')
end
it 'sets up an outgoing caller ids resources object' do
- @account.should respond_to(:outgoing_caller_ids)
- @account.outgoing_caller_ids.instance_variable_get('@path').should == 'someUri/OutgoingCallerIds'
+ expect(@account).to respond_to(:outgoing_caller_ids)
+ expect(@account.outgoing_caller_ids.instance_variable_get('@path')).to eq('someUri/OutgoingCallerIds')
end
it 'sets up a calls resources object' do
- @account.should respond_to(:calls)
- @account.calls.instance_variable_get('@path').should == 'someUri/Calls'
+ expect(@account).to respond_to(:calls)
+ expect(@account.calls.instance_variable_get('@path')).to eq('someUri/Calls')
end
it 'sets up a conferences resources object' do
- @account.should respond_to(:conferences)
- @account.conferences.instance_variable_get('@path').should == 'someUri/Conferences'
+ expect(@account).to respond_to(:conferences)
+ expect(@account.conferences.instance_variable_get('@path')).to eq('someUri/Conferences')
end
it 'sets up a queues resources object' do
- @account.should respond_to(:queues)
- @account.queues.instance_variable_get('@path').should == 'someUri/Queues'
+ expect(@account).to respond_to(:queues)
+ expect(@account.queues.instance_variable_get('@path')).to eq('someUri/Queues')
end
it 'sets up a sms resource object' do
- @account.should respond_to(:sms)
- @account.sms.instance_variable_get('@path').should == 'someUri/SMS'
+ expect(@account).to respond_to(:sms)
+ expect(@account.sms.instance_variable_get('@path')).to eq('someUri/SMS')
end
it 'sets up a recordings resources object' do
- @account.should respond_to(:recordings)
- @account.recordings.instance_variable_get('@path').should == 'someUri/Recordings'
+ expect(@account).to respond_to(:recordings)
+ expect(@account.recordings.instance_variable_get('@path')).to eq('someUri/Recordings')
end
it 'sets up a transcriptions resources object' do
- @account.should respond_to(:transcriptions)
- @account.transcriptions.instance_variable_get('@path').should == 'someUri/Transcriptions'
+ expect(@account).to respond_to(:transcriptions)
+ expect(@account.transcriptions.instance_variable_get('@path')).to eq('someUri/Transcriptions')
end
it 'sets up a notifications resources object' do
- @account.should respond_to(:notifications)
- @account.notifications.instance_variable_get('@path').should == 'someUri/Notifications'
+ expect(@account).to respond_to(:notifications)
+ expect(@account.notifications.instance_variable_get('@path')).to eq('someUri/Notifications')
end
end