-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
Add deprecation warnings for features to be removed/changed in RSpec 4 #1301
base: main
Are you sure you want to change the base?
Conversation
377fab5
to
ed390ed
Compare
c7bac85
to
46a72a3
Compare
c03a0cd
to
5eb1d10
Compare
If we clone add-major-update-deprecation-warnings from rspec/rspec-core#2880 We do not have the CI failure. I did a wip commit for the CI |
"`:should` Expectations syntax", | ||
{:call_site=>nil, :replacement=>"the default `expect` syntax"}, | ||
] | ||
expect(RSpec).to receive(:deprecate).with(*syntax_arguments).at_least(:once) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to add .at_least(:once)
because of line 157 that leak into the test. If you comment it out, there is not need for .at_least(:once)
anymore.
9478153
to
31ca861
Compare
17e2bd3
to
8b709f1
Compare
bf684ea
to
b9c9c2e
Compare
All three sibling PRs are green together. @JonRowe, @benoittgt please have a look. I suggest the following merge order: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM <3
lib/rspec/matchers/built_in/has.rb
Outdated
predicate_actual = predicate_result | ||
if value == !!predicate_actual && value != predicate_actual | ||
RSpec.deprecate( | ||
"`#{predicate_method_name}` returned neither `true` nor `false`, but rather `#{predicate_actual.inspect}`") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good deprecation warning!
4fd9b36
to
d67e751
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still good to me
d67e751
to
800f5e4
Compare
800f5e4
to
c75a966
Compare
Does it need work to make the CI green? -- |
It should become green when a corresponding |
Adds deprecation warnings for the work done on unreleased RSpec 4.
fixes #1302
should
for configuration and usage.include_chain_clauses_in_custom_matcher_descriptions
option #1279). Deprecation warning when usedThis is purposed to be released as version 3.99.
Sibling PRs:
Deprecation warnings list: #1302
Release strategy: rspec/rspec-core#2880 (comment)
RSpec 4 plan: https://github.com/rspec/rspec/issues/61
Changes: https://github.com/rspec/rspec-expectations/blob/4-0-dev/Changelog.md#development