FICHA · MANJARO

ruby-mocha

Mocha is a mocking and stubbing library for Ruby

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

Description

Adds mocking and stubbing tools for Ruby tests so code can replace collaborators with controlled behavior. It is useful for isolating units, simulating errors, and checking interactions.

Mocks can make tests pass while real integrations are broken. Use them for focused tests, but keep contract or integration tests for important boundaries.

Permissions

Permissions not analysed for this source yet.