-
-
Notifications
You must be signed in to change notification settings - Fork 358
Add deprecation warnings for features to be removed/changed in RSpec 4 #1418
Conversation
a74c7a7
to
445aa10
Compare
c192369
to
02fb699
Compare
@@ -80,13 +80,23 @@ def add_stub_and_should_receive_to(*modules) | |||
# | |||
def syntax=(*values) | |||
syntaxes = values.flatten | |||
if self.class.warn_about_syntax? |
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.
We call configuration.reset_syntaxes_to_default
, and don't want a deprecation message to be emitted at that moment.
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.
👍
02fb699
to
f7da8b4
Compare
f7da8b4
to
0968af2
Compare
To prevent the build from failing, I had to comment out this in # c.raise_errors_for_deprecations! Made it part of rspec/rspec-core#2880. |
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
This will become green when rspec/rspec-core#2880 is merged. Still, preliminary code review is appreciated. |
Migrated to the monorepo |
According to https://github.com/rspec/rspec-mocks/blob/4-0-dev/Changelog.md, only those two deprecation warnings are needed.
This is purposed to be released as version 3.99. Similar PRs for Expectations will follow.
Sibling PRs:
Release strategy: rspec/rspec-core#2880 (comment)
See rspec/rspec#61
RSpec 4 plan: rspec/rspec#61
Changes https://github.com/rspec/rspec-mocks/blob/4-0-dev/Changelog.md#development