Skip to content

Conversation

nyarly
Copy link
Member

@nyarly nyarly commented Aug 28, 2015

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


def warn_about_promotion(scope_name)
RSpec::Steps.warnings[
"#{scope_name} :each blocks declared for steps are always treated as " +

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?

Copy link
Member Author

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?

hannahhoward added a commit that referenced this pull request Sep 21, 2015
Complete overall avoids touching RSpec innards
@hannahhoward hannahhoward merged commit 0686223 into master Sep 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants