-
-
Notifications
You must be signed in to change notification settings - Fork 766
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 #2880
base: main
Are you sure you want to change the base?
Conversation
@JonRowe Am I doing the right thing? |
@pirj yep, thats the exactly the kind of thing we'll want in a final 3.x release. We'll follow the 2.x strategy of:
It's sufficient to keep these as a PR until we get to releasing 3.99, the first two steps are just release management as usual |
6abb3f2
to
eee9511
Compare
6420630
to
40b566b
Compare
Green! I have seen |
Thanks @pirj for this PR. 🙌🏻
It means people will always have the deprecations when they use the last version chosen by bundler for their Ruby version? |
Sorry I scrolled back and saw
|
f8fefeb
to
13e97f5
Compare
3bae67d
to
8b42d12
Compare
See https://github.com/rspec/rspec-mocks/pull/1418/checks?check_run_id=2115367793 for an example for RSpec Mocks build failure
8b42d12
to
97b1747
Compare
# Temporary measure to prevent failures when run in a sub-build from other repos | ||
# c.raise_errors_for_deprecations! |
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.
This needs to be reverted when all three are merged.
A few things are a bit off, e.g.:
:if
/:unless
deprecation usagesunless
condition insnippet_extractor_spec.rb
to skip it on Ruby 1.8 builds. Puzzled to understand how:unless => RSpec::Support::Ruby.jruby? && !RUBY_VERSION.start_with?('1.8.')
was working (example failure)This is purposed to be released as version 3.99.
Sibling PRs:
Release strategy: #2880 (comment)
RSpec 4 plan: https://github.com/rspec/rspec/issues/61
Changes: https://github.com/rspec/rspec-core/blob/4-0-dev/Changelog.md#development
TODO
rspec-expectations
PR, thenrspec-mocks
PRspec/spec_helper.rb
change