twilio / authy-ruby

**Deprecated** Ruby library to access the authy API
MIT License
156 stars 47 forks source link

Fix flaky test #56

Closed robinske closed 3 years ago

robinske commented 5 years ago

Flaky test failure occurred on README only changes: https://travis-ci.org/twilio/authy-ruby/jobs/584230201 https://travis-ci.org/twilio/authy-ruby/jobs/595194891

https://github.com/twilio/authy-ruby/blob/2ebee7c71b2f2317a436a27c77a1217e0a192def/spec/authy/api_spec.rb#L230

  1) Authy::API user status user exists should be ok
     Failure/Error: super(name, *args, &block)

     NoMethodError:
       undefined method `status' for #<Authy::Response:0x00000003a75fc8>
     # ./lib/authy/response.rb:47:in `method_missing'
     # ./spec/authy/api_spec.rb:232:in `block (4 levels) in <top (required)>'
philnash commented 3 years ago

Tests now don't use the sandbox or network, so are no longer flaky. Closing!