Description
Adds RSpec's mock and stub framework for replacing collaborators during tests. It is useful for isolating units, simulating errors, and checking whether important interactions happened.
Mocks can make tests overfit implementation details. Keep integration tests for real boundaries and avoid mocking behavior that users depend on directly.