RSpec Mocks

Community

Isolate code with Ruby test doubles

Authorbastos
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Isolate unit tests from external collaborators by providing guidance and patterns for using test doubles in RSpec, enabling focused validation of behavior with minimal coupling.

Core Features & Use Cases

  • Doubles, Verifying Doubles, Partial Doubles, and Spies: choose the right type to model collaborators and verify interfaces.
  • Stubbing and mocking interactions: replace real dependencies with controllable doubles to drive scenarios and assert calls.
  • Best-practice guidance: reduce brittleness with interface verification and boundaries between units.

Quick Start

Create an instance_double for a dependency in your spec and stub or verify its methods to drive and assert isolated behavior.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: RSpec Mocks
Download link: https://github.com/bastos/ruby-plugin-marketplace/archive/main.zip#rspec-mocks

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.