Testing Sleep
We try to avoid writing slow unit tests, but what if we are testing a method whose responsibilities include waiting for a period of time? In this episode we look at a few approaches, talk about the difference between testing logic and testing system interactions, and finally settle on a strategy that leads us to a more flexible design.
This episode is part of Rigorous Ruby.
Rigorous Ruby has 7 modules and 50 lessons. Watching this episode takes a Pro membership, which includes every course. You can also buy this course on its own.
Responses