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

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner
Get the app