DEV Community

loading...

Test Rails Fast and Stable

chenge
Ruby, and learn Rust, Go, Elixir, Erlang...
・1 min read

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)

Collapse
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: https://www.youtube.com/watch?v=PJjHfa5yxlU
{% youtube PJjHfa5yxlU %}
Collapse
chenge profile image
chenge Author

Thanks.