diff --git a/lib/twilio-ruby/rest/accounts.rb b/lib/twilio-ruby/rest/accounts.rb index 296c3c5d6..90dddd495 100644 --- a/lib/twilio-ruby/rest/accounts.rb +++ b/lib/twilio-ruby/rest/accounts.rb @@ -8,7 +8,8 @@ def initialize(path, client, params={}) resource :sandbox, :available_phone_numbers, :incoming_phone_numbers, :calls, :outgoing_caller_ids, :conferences, :sms, :recordings, :transcriptions, :notifications, :applications, :connect_apps, - :authorized_connect_apps, :queues, :usage, :messages, :media, :sip + :authorized_connect_apps, :queues, :usage, :messages, :media, :sip, + :tokens end end end diff --git a/spec/rest/account_spec.rb b/spec/rest/account_spec.rb index 63dd74742..40f0792fe 100755 --- a/spec/rest/account_spec.rb +++ b/spec/rest/account_spec.rb @@ -71,4 +71,11 @@ 'someUri/Notifications' ) end + + it 'sets up a tokens resources object' do + expect(@account).to respond_to(:tokens) + expect(@account.tokens.instance_variable_get('@path')).to eq( + 'someUri/Tokens' + ) + end end