JMongol / twilio-test-toolkit

Twilio Test Toolkit (TTT) makes it easy to write RSpec integration tests for Rails applications that serve Twilio phone callbacks.
MIT License
29 stars 22 forks source link

Make it easier/possible to test REST API-initiated calls #12

Open pgib opened 10 years ago

pgib commented 10 years ago

Calls originating from the Twilio REST API include a Called parameter. (It seems the same as To, but it's only there in that sort of call.) The Direction is also outbound-api, and so we can now run tests that include both of these parameters:

ttt_call('/path', '+16045551234', '+16045556789', :called => '+16045556789', :direction => 'outbound-api')

It's also now possible to pass in a different :call_status in order to test on changes there.

pgib commented 9 years ago

Any chance this could be looked at to be incorporated?