Guide146.9K views3,422 votes0 replies3,473 following
RSpec verifying doubles as an architectural boundary for unit tests
Verifying doubles replace plain doubles at owned seams so unit tests fail when a collaborator's API changes. This note covers requirements, trust boundaries, failure modes, and when to use integration tests instead.