rspec-expectations breaking changes
rspec-expectations 3.0.0.rc1 (June 2, 2014) is its newest release with breaking changes, 8 of them. The first: Removed matcher_execution_context. Every breaking API change we have recorded in rspec-expectations on RubyGems: 26 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.13.6.
Packages on RubyGems run on Ruby. Ruby end of life dates.
- From 3.0.0.beta1 to 3.0.0.rc1: 20 breaking changes in 2 versions.
rspec-expectations 3.0.0.rc1 breaking changes
- Removed
matcher_execution_context
The matcher_execution_context attribute is removed from DSL-defined custom matchers. github.com - Removed
require 'rspec-expectations'
Require rspec/expectations instead. github.com - Removed
RSpec.Matchers.Pretty._pretty_print
The _pretty_print method is removed. github.com - Removed
RSpec.Matchers.Pretty.expected_to_sentence
The expected_to_sentence method is removed. github.com - Renamed
RSpec.Matchers.Configuration
Reference the constant under RSpec::Expectations instead. github.com - Behavior changed
eq
Using a value matcher in a block expectation, or the reverse, now gives an explicit error. github.com - Behavior changed
have_xyz
Predicate matchers now refuse private methods on the receiver. github.com - Signature changed
supports_block_expectations?
Custom block matchers must now define supports_block_expectations?. github.com
rspec-expectations 3.0.0.beta2 breaking changes
- Removed
Integration with Test::Unit and Minitest 4.x is removed. github.com - Removed
expect(.).should
The deprecated should form on expect is removed; use to. github.com - Removed
RSpec
The deprecated Rspec and Spec constant aliases are removed; use RSpec. github.com - Removed
RSpec.Expectations.differ=
The deprecated differ setter is removed. github.com - Removed
RSpec.Matchers.OperatorMatcher
The deprecated OperatorMatcher constant is removed. github.com - Renamed
failure_message_for_should
Custom matchers should rename failure_message_for_should to failure_message. github.com - Renamed
failure_message_for_should_not
Custom matchers should rename failure_message_for_should_not to failure_message_when_negated. github.com - Renamed
match_for_should
Custom matchers should rename match_for_should to match. github.com - Renamed
match_for_should_not
Custom matchers should rename match_for_should_not to match_when_negated. github.com - Behavior changed
change
Using these qualifiers with not_to change is explicitly disallowed and raises an error. github.com
And 2 more in this version. Sign up to see every change
rspec-expectations 3.0.0.beta1 breaking changes
- Removed
Explicit support for 1.8.6 is removed in 3.0.0, so code relying on it must move to a newer Ruby. github.com - Removed
be_close
The deprecated be_close matcher is removed; use be_within instead. github.com - Renamed
be_false
Use be_falsey in place of be_false. github.com - Renamed
be_true
Use be_truthy in place of be_true. github.com - Behavior changed
raise_error
Using to_not raise_error with a class or message argument is no longer allowed; use it with no arguments. github.com - Behavior changed
RSpec.Matchers.define
Helpers added via def self.helper or extend are no longer available inside match blocks; include the module and use instance methods. github.com
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.