DEV Community


Posted on

Test Rails Fast and Stable

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.

Discussion (2)

andy profile image
Andy Zhao (he/him)

Thanks for sharing, that was a great talk.

Feel free to use the YouTube tag to embed:

# YouTube link:
{% youtube PJjHfa5yxlU %}
chenge profile image
chenge Author