FICHA · MANJARO

ruby-rspec-mocks

RSpecs 'test double' framework, with support for stubbing and mocking

  • Library
  • LIBRARY
  • Dependency only
official+codex · reviewed · May 29, 2026 description in en

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.

Permissions

Permissions not analysed for this source yet.