RSpec-Mocks: instance_double consistency during credential isolation
When isolating integration tests from production credentials, instance_double is used to ensure that stubs remain consistent with the actual class definitions of API wrappers or credential managers. This prevents the tests from passing against a mock interface that no longer exists in the production codebase. A design challenge arises when the credential-pro