rspec-expectations provides a simple, readable API to express expected outcomes of a code example.

Critical or Security advisories for 3.6.0

This version doesn't have any advisory. Want to report one?

Changelog for 3.6.0

Full Changelog


  • Treat NoMethodError as a failure for comparison matchers. (Jon Rowe, #972)
  • Allow for scoped aliased and negated matchers--just call alias_matcher or define_negated_matcher from within an example group. (Markus Reiter, #974)
  • Improve failure message of change matcher with block and satisfy matcher by including the block snippet instead of just describing it as result or block when Ripper is available. (Yuji Nakayama, #987)

Bug Fixes:

  • Fix yield_with_args and yield_successive_args matchers so that they compare expected to actual args at the time the args are yielded instead of at the end, in case the method that is yielding mutates the arguments after yielding. (Alyssa Ross, #965)

Dependencies for 3.6.0

Name Requirement Status
< 2.0, >= 1.2.0

~> 3.6.0

My projects using rspec-expectations

Name Locked version Requirement
You should be logged in to see which of your projects use rspec-expectations.