Part 2: Controlling time and randomness
Fixtures live next to the tests that use them and describe a real situation, like a customer with an expired card, rather than a pile of random fields.
- One behaviour per test
- Freeze the clock and seed randomness
- Name fixtures after real situations
- Keep the main suite under three minutes