-
Notifications
You must be signed in to change notification settings - Fork 10
Complete overall avoids touching RSpec innards #20
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
Conversation
|
||
def warn_about_promotion(scope_name) | ||
RSpec::Steps.warnings[ | ||
"#{scope_name} :each blocks declared for steps are always treated as " + |
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.
Readme seems to suggest before :step has gone away, but this message suggests otherwise. Which is correct?
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.
before :step
used to have a particular and important meaning. You can still use it in your own code (mostly to reduce the degree to which we'd have to re-write steps code) but I discovered that e.g. waterpig cannot (because reasons.)
All that said: it's better not to use before :step
and at some future time we might remove it entirely.
What do you think?
Complete overall avoids touching RSpec innards
Compatible now with RSpec 3.0-3.3+, and forseeable versions of RSpec.
Experience with current code suggests that at worst we may have to update the
test suite for rspec-steps to keep it working