In this Metz's video RailsConf 2016 - Get a Whiff of This by Sandi Metz, she demoed how to refactor and make test fast and stable by Fake object.
class Foo --> class Sale
Test Foo with fake Sale.
Code is here:
Test Any Slow or Unstable API
You can use this method to test any I think.
Top comments (2)
Thanks for sharing, that was a great talk.
Feel free to use the YouTube tag to embed:
Thanks.