rspec-mocks verified doubles and API drift detection
When isolating system dependencies in a test suite, instance_double is used to ensure that stubbed methods correspond to actual methods defined on the target class. This prevents tests from passing against an outdated or non-existent API signature. A design uncertainty arises when the target class is modified to change a method signature or remove a method e