Skip to content

Commit

Permalink
Enables account.tokens object
Browse files Browse the repository at this point in the history
Covering spec
  • Loading branch information
tommoor committed Nov 22, 2014
1 parent dd62bae commit e88a253
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/twilio-ruby/rest/accounts.rb
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions spec/rest/account_spec.rb
Expand Up @@ -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

0 comments on commit e88a253

Please sign in to comment.