Permalink
Browse files

Use #formatted_digits in #request_for_twiml!.

Can now take finish_on_key into account.

Also no longer need to handle where options[:digits] is nil as dealt is with elsewhere.
  • Loading branch information...
1 parent 6d56cbf commit 84b2c5eb549f0a5e09a5a68c56f81168ad44d901 Jon Gilbraith committed Mar 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/twilio-test-toolkit/call_scope.rb
@@ -174,7 +174,7 @@ def request_for_twiml!(path, options = {})
:format => :xml,
:CallSid => @root_call.sid,
:From => @root_call.from_number,
- :Digits => options[:digits] || "",
+ :Digits => formatted_digits(options[:digits], :finish_on_key => options[:finish_on_key]),
:To => @root_call.to_number,
:AnsweredBy => (options[:is_machine] ? "machine" : "human")
)

0 comments on commit 84b2c5e

Please sign in to comment.