# eliotsykes/rspec-rails-examples

RSpec cheatsheet & Rails app: Learn how to expertly test Rails apps from a model codebase

Repository: https://github.com/eliotsykes/rspec-rails-examples
Canonical: https://ross.abutalabs.com/products/rspec-rails-examples
Language: Ruby
License: MIT
License Family: permissive
Topics: rspec-rails, rails, rails-application, rails-tutorial, learning-rspec, factory-girl, ruby, shoulda-matchers, rspec-cheatsheet, rspec-testing, rspec-matchers, ruby-on-rails, rspec-examples
Archived: true
Last push: 2020-07-26T09:46:32+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4306, "days_push": 2229, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2148, forks 308 (observed 2026-08-28T04:06:19.130719+00:00)

## What it is
A Rails application that serves as a comprehensive RSpec cheatsheet, containing well-commented example specs for feature, mailer, model, and other test types. It demonstrates configuration of popular testing gems like Capybara, DatabaseCleaner, FactoryGirl, VCR, and Shoulda Matchers.

## Use cases
- learn how to test rails apps with rspec
- find rspec examples for testing mailers and models
- see how to configure capybara and database cleaner
- reference for writing feature specs in rails
- learn factory girl and shoulda matchers usage
- examples of testing activejob and rake tasks with rspec

## When to choose
- you are learning RSpec for Rails and want a model codebase to study
- you need copy-paste examples for common Rails testing scenarios
- you want documented configuration walkthroughs for popular testing gems

## When to avoid
- you need a testing library or framework to install as a dependency
- you need up-to-date examples for the latest Rails or RSpec versions, as the project's last release was in 2020
- you want an automated testing tool rather than educational reference material

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: testing, e2e-testing, mocking, developer-tools
- domain: testing, web-development, tutorials, developer-tools
- platform: ruby, cross-platform
- tags: rspec, rails, ruby-on-rails, cheatsheet, tdd, capybara, factory-girl, shoulda-matchers, example-code

## Member repositories
- eliotsykes/rspec-rails-examples (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:19.130719+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:51:06.466985+00:00, confidence not recorded.
  - readme: https://github.com/eliotsykes/rspec-rails-examples (fetched 2026-08-28T04:06:19.130719+00:00, sha 6aeac96ee6b9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
