Closed 64kramsystem closed 1 year ago
This is fixed by #1514, and released in 3.12.2. Please use a more recent version. I believe we don’t backport fixes to prior minor releases.
Apologies but as @pirj said we don't backport fixes to older minor versions, only maintaining the current major/minor release stream, you should be able to upgrade to 3.12 seamlessly as there are no breaking changes.
Thanks for looking :pray:.
(this is a PITA for us, because One Famous Gem™ (chef cough cough) transitively depends on rspec (!!!), worse, restricting the version to <= 3.11)
Subject of the issue
When
verify_partial_doubles
is set to true, RSpec 3.11 reports some failures (on Ruby 3.2), mistaking kwargs for hashes; this does not happen on RSpec 3.12.The kwargs/hashes problem is a known dev mistake (on Ruby 3.2), however, it seems not to be the cause here, because if this was the case, RSpec would report a failure on both 3.11 and 3.12; regardless, it should be unrelated to
verify_partial_doubles
.The failure output is in this form:
Your environment
Steps to reproduce
There you go:
Expected behavior
The expectation should be met.
Actual behavior
The expectation is not met, because the kwargs are mistaken for a hash.