rspec

Installation
SKILL.md

RSpec

RSpec is the primary testing tool for Ruby (especially Rails). It focuses on "Behavior Driven Development" (BDD), making tests read like documentation specifications.

When to Use

  • Ruby on Rails BDD Testing: The standard Behavior-Driven Development testing framework for Ruby and Rails applications.
  • Expressive Specification Design: Writing readable, self-documenting specifications using describe, context, and it.
  • Database & Model Validation: Testing ActiveRecord validations, scopes, and associations with shoulda-matchers.
  • Comprehensive Mocking & Stubbing: Isolating dependencies using instance_double and allow().to receive().

Quick Start

Installs
7
GitHub Stars
15
First Seen
Feb 10, 2026