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
On this page
Latest version 8.0.1. Source repository
Its 8.0.0 release drops Ruby 3.2. Ruby end of life dates.
- From 7.0.1 to 8.0.0: 2 breaking changes in 1 version.
- From 2.0.0 to 8.0.0: 29 breaking changes in 8 versions.
shoulda-matchers 8.0.0 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 - 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
shoulda-matchers 7.0.1 breaking changes
- Configuration changed
The gem now depends on mutex_m, which is installed with it. github.com
shoulda-matchers 7.0.0 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 - Removed
Rails 6.1 and older are no longer supported, so apps on those versions must upgrade Rails before using this release. github.com - Configuration changed
The supported Ruby versions are updated to 3.3.10 and 3.4.7. github.com
shoulda-matchers 6.0.0 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 - 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
shoulda-matchers 5.0.0 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 - Removed
allow_mass_assignment_of
The deprecated allow_mass_assignment_of matcher is gone. Stop using it in specs. github.com - Removed
use_after_filter
The deprecated use_after_filter matcher is gone. Stop using it in specs. github.com - Removed
use_around_filter
The deprecated use_around_filter matcher is gone. Stop using it in specs. github.com - Removed
use_before_filter
The deprecated use_before_filter matcher is gone. Stop using it in specs. github.com
shoulda-matchers 4.0.0 breaking changes
- Removed
Rails 4.0 and 4.1 are no longer supported; upgrade Rails before using this version. github.com - Removed
Ruby 2.0 and 2.1 are no longer supported; upgrade Ruby before using this version. github.com - Behavior changed
Negative validation matcher assertions now behave differently; review negated validation specs. github.com
Older versions
3 older versions, each with its first changes. Sign up to see every change
Show 3 older versions
shoulda-matchers 4.0.0.rc1 breaking changes
- Removed
Ruby 2.0 and 2.1 are no longer supported; upgrade Ruby before using this version. github.com
shoulda-matchers 3.0.0 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 - Removed
ensure_exclusion_of
Use the validate_* counterpart instead. github.com
And 10 more in this version.
shoulda-matchers 2.0.0 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 - Removed
delegate_method
The delegate_method matcher was removed in 2.0.0 and code using it must be updated or dropped. github.com
And 5 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.