twilio / authy-devise

Authy Devise plugin to add Two-Factor Authentication
MIT License
201 stars 84 forks source link

Stops making API requests from tests. #122

Closed philnash closed 4 years ago

philnash commented 4 years ago

It appears that this test suite was making requests to the sandbox API URL. This was recently causing time outs. This update adds webmock to block network requests from tests and uses rspec mocks to stub the response of the Authy library and test this implementation in a more robust and network independent manner.

Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.