From e88a253ccee601b0cfe092bfc85cc04362c51318 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 22 Nov 2014 18:59:59 +0000 Subject: [PATCH] Enables account.tokens object Covering spec --- lib/twilio-ruby/rest/accounts.rb | 3 ++- spec/rest/account_spec.rb | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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