Let’s Test It Well (and Simply, and Smartly)
If you are fond of testing, just like our Ruby Developer Nastia Shaternik, you’ll probably be interested to read her post about using RSpec. There, she dwells on how some RSpec features that are not commonly used can help you simplify testing and make tests clearer.
Learn how to make your tests readable as short documentation. Find out how using mock_model can make your tests run faster, see an example of using RSpec’s built-in expectations, get two strategies of sharing the same data among different examples, and more.
You may read the full Nastia’s posting, following this link: http://altoros.github.io/2013/lets-test-it-well.No Comments