The Bike Shed cover image

396: Build vs. Buy

The Bike Shed

00:00

How to Fix a Class Instance Variable Leakage

Stubbed value that we were choosing to return ended up being referenced in the tests that followed. That was really strange to me because it went against everything I understood about how our spec cleans up stubs between tests. The next discovery was that the error was actually raised in the factory setup for the failing tests and not even getting to running the examples at all. And digging into the factories was also its own adventure because there was a lot of complexity in the factories.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app