---
title: "shoulda-matchers 8.0.0 Breaking Changes on RubyGems"
description: "What each shoulda-matchers release removed, renamed or changed: 36 breaking changes in 9 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/shoulda-matchers
last_updated: 2026-12-04
---

# shoulda-matchers breaking changes

shoulda-matchers 8.0.0 (June 12, 2026) is its newest release with breaking changes, 2 of them. The first: Drops support for Rails 7.1 in shoulda-matchers 8.0.0. Every breaking API change we have recorded in shoulda-matchers on RubyGems: 36 breaking changes in 9 versions. Below, its 9 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `8.0.1`. [Source repository](https://github.com/thoughtbot/shoulda-matchers)

Its 8.0.0 release drops [Ruby 3.2](https://since.dev/calendar/ruby/3.2.md). [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [7.0.1](#v-7-0-1) to [8.0.0](#v-8-0-0): 2 breaking changes in 1 version.
- From [2.0.0](#v-2-0-0) to [8.0.0](#v-8-0-0): 29 breaking changes in 8 versions.

## shoulda-matchers 8.0.0 breaking changes

shoulda-matchers 8.0.0, released June 12, 2026: 2 breaking changes.

- **Removed**  

This release stops supporting Rails 7.1. Users on Rails 7.1 must upgrade Rails before moving to 8.0.0. [github.com](https://github.com/thoughtbot/shoulda-matchers/releases/tag/v8.0.0)
- **Behavior changed**  

This release stops supporting Ruby 3.2. Users on Ruby 3.2 must upgrade Ruby before moving to 8.0.0. [github.com](https://github.com/thoughtbot/shoulda-matchers/releases/tag/v8.0.0)

## shoulda-matchers 7.0.1 breaking changes

shoulda-matchers 7.0.1, released October 31, 2025: 1 breaking change.

- **Configuration changed**  

The gem now depends on mutex_m, which is installed with it. [github.com](https://github.com/thoughtbot/shoulda-matchers/releases/tag/v7.0.1)

## shoulda-matchers 7.0.0 breaking changes

shoulda-matchers 7.0.0, released October 31, 2025: 3 breaking changes.

- **Removed**  

Rails 7.0 is no longer supported, so apps on Rails 7.0 must upgrade Rails before using this release. [github.com](https://github.com/thoughtbot/shoulda-matchers/releases/tag/v7.0.0)
- **Removed**  

Rails 6.1 and older are no longer supported, so apps on those versions must upgrade Rails before using this release. [github.com](https://github.com/thoughtbot/shoulda-matchers/releases/tag/v7.0.0)
- **Configuration changed**  

The supported Ruby versions are updated to 3.3.10 and 3.4.7. [github.com](https://github.com/thoughtbot/shoulda-matchers/releases/tag/v7.0.0)

## shoulda-matchers 6.0.0 breaking changes

shoulda-matchers 6.0.0, released December 22, 2023: 2 breaking changes.

- **Removed**  

The gem no longer supports Rails 5.2 and 6.0; it now requires Rails 6.1+. Upgrade Rails before updating. [github.com](https://github.com/thoughtbot/shoulda-matchers/releases/tag/v6.0.0)
- **Removed**  

The gem no longer supports Rails 5.2 and 6.0 or Ruby 2.6 and 2.7; it now requires Ruby 3.0+ and Rails 6.1+. Upgrade Ruby and Rails before updating. [github.com](https://github.com/thoughtbot/shoulda-matchers/releases/tag/v6.0.0)

## shoulda-matchers 5.0.0 breaking changes

shoulda-matchers 5.0.0, released July 10, 2021: 5 breaking changes.

- **Removed**  

The gem no longer supports Rails 4.2, 5.0 and 5.1. Rails 5.2 or later is required. [github.com](https://github.com/thoughtbot/shoulda-matchers/releases/tag/v5.0.0)
- **Removed** `allow_mass_assignment_of`  

The deprecated allow_mass_assignment_of matcher is gone. Stop using it in specs. [github.com](https://github.com/thoughtbot/shoulda-matchers/releases/tag/v5.0.0)
- **Removed** `use_after_filter`  

The deprecated use_after_filter matcher is gone. Stop using it in specs. [github.com](https://github.com/thoughtbot/shoulda-matchers/releases/tag/v5.0.0)
- **Removed** `use_around_filter`  

The deprecated use_around_filter matcher is gone. Stop using it in specs. [github.com](https://github.com/thoughtbot/shoulda-matchers/releases/tag/v5.0.0)
- **Removed** `use_before_filter`  

The deprecated use_before_filter matcher is gone. Stop using it in specs. [github.com](https://github.com/thoughtbot/shoulda-matchers/releases/tag/v5.0.0)

## shoulda-matchers 4.0.0 breaking changes

shoulda-matchers 4.0.0, released February 26, 2019: 3 breaking changes.

- **Removed**  

Rails 4.0 and 4.1 are no longer supported; upgrade Rails before using this version. [github.com](https://github.com/thoughtbot/shoulda-matchers/releases/tag/v4.0.0)
- **Removed**  

Ruby 2.0 and 2.1 are no longer supported; upgrade Ruby before using this version. [github.com](https://github.com/thoughtbot/shoulda-matchers/releases/tag/v4.0.0)
- **Behavior changed**  

Negative validation matcher assertions now behave differently; review negated validation specs. [github.com](https://github.com/thoughtbot/shoulda-matchers/releases/tag/v4.0.0)

## Older versions

3 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### shoulda-matchers 4.0.0.rc1 breaking changes

shoulda-matchers 4.0.0.rc1, released February 26, 2019: 1 breaking change.

- **Removed**  

Ruby 2.0 and 2.1 are no longer supported; upgrade Ruby before using this version. [github.com](https://github.com/thoughtbot/shoulda-matchers/releases/tag/v4.0.0.rc1)

### shoulda-matchers 3.0.0 breaking changes

shoulda-matchers 3.0.0, released October 1, 2015: 12 breaking changes.

- **Removed**  

Support for Rails 3.x, Ruby 1.9.2, 1.9.3 and RSpec 2 has been removed; upgrade to supported versions before using this release. [github.com](https://github.com/thoughtbot/shoulda-matchers/blob/v3.0.0/NEWS.md)
- **Removed** `ensure_exclusion_of`  

Use the validate\_\* counterpart instead. [github.com](https://github.com/thoughtbot/shoulda-matchers/blob/v3.0.0/NEWS.md)

And 10 more in this version.

### shoulda-matchers 2.0.0 breaking changes

shoulda-matchers 2.0.0, released April 5, 2013: 7 breaking changes.

- **Removed** `assign_to`  

The assign_to matcher was removed in 2.0.0 and code using it must be updated or dropped. [github.com](https://github.com/thoughtbot/shoulda-matchers/blob/v2.0.0/NEWS.md)
- **Removed** `delegate_method`  

The delegate_method matcher was removed in 2.0.0 and code using it must be updated or dropped. [github.com](https://github.com/thoughtbot/shoulda-matchers/blob/v2.0.0/NEWS.md)

And 5 more in this version.

## Related packages

- [shoulda-context](https://since.dev/packages/gem/shoulda-context.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
