-
-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RSpec 3.11 mistakes kwargs for hash, when verify_partial_doubles
is set to true
#1549
Comments
verify_partial_doubles
is set to truverify_partial_doubles
is set to true
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 🙏. (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.
The text was updated successfully, but these errors were encountered: