FindSoftware

Shoulda Matchers

Ruby gem that provides RSpec and Minitest one-liner matchers for testing Rails models, controllers and routes.

Shoulda Matchers adds one-line tests for common Rails functionality, such as models, controllers and routes, to RSpec and Minitest suites. The matchers cover ActiveModel, ActiveRecord and ActionController, and the gem is loaded by test suites, in the test group of a Gemfile.

Apps that are not Rails apps but use ActiveRecord or ActiveModel can use the gem too, by naming the library in a configuration block. The gem is copyrighted by Tammer Saleh and thoughtbot, inc, and the README says thoughtbot, inc maintains and funds the repository.

Identity

Status
Active
Maintainer
Tammer Saleh and thoughtbot, inc.7
First release
20118

Rendering and deploy

Install with
gem4

Releases

Current major version
89
Last release
2026-06-129

Adoption

GitHub stars
3,5772
Contributors
27910
Dependent repositories
69,22111
Dependent packages
76511

Why these figures do not compare

Sources

  1. 2026-11-16: links
    matchers.shoulda.io/
  2. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/thoughtbot/shoulda-matchers
  3. 2026-11-16: links
    matchers.shoulda.io/docs/
  4. 2026-11-16: Categories, Runtime, Install with, License model
    github.com/thoughtbot/shoulda-matchers/blob/main/README.md
  5. 2026-11-16: Built on, Minimum runtime
    raw.githubusercontent.com/thoughtbot/shoulda-matchers/v8.0.1/shoulda-matchers.gemspec
  6. 2026-11-16: License
    rubygems.org/api/v1/gems/shoulda-matchers.json
  7. 2026-11-16: Maintainer
    raw.githubusercontent.com/thoughtbot/shoulda-matchers/main/LICENSE
  8. 2026-11-16: First release
    rubygems.org/api/v1/versions/shoulda-matchers.json
  9. 2026-11-16: Current major version, Last release
    api.github.com/repos/thoughtbot/shoulda-matchers/releases
  10. 2026-11-16: Contributors
    api.github.com/repos/thoughtbot/shoulda-matchers/contributors?per_page=1
  11. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/shoulda-matchers

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON