-
Notifications
You must be signed in to change notification settings - Fork 9
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
Define behavior for nesting describe/steps #12
Comments
hi! How difficult would it be to enable nested steps? I think a nested step should execute all steps before that but not steps in the same indentation (same block ? ). That would help a lot in scenarios that differ slightly. |
There's a number of use cases, and it's not entirely clear how to handle them in a straightforward way. Picture:
What steps should run in each case? What effect should before/after blocks in "in b" have? Conversely, there's already shared_steps and include_steps which work the other way around: set up the common parts in a shared_steps block, include_steps everywhere that they're needed. |
Hi! In my opinion it would be nice if rspec-steps always preserved state of the outside block and previous "it" blocks of the same block. In your example "1" blocks should preserve the state that has been achieved until that moment (let it be "outside"). Similarly "1a" preserves the state of "outside" and "1". |
Behavior is currently undefined. Easiest thing would be to fail completely if steps not at root or anything nested.
The text was updated successfully, but these errors were encountered: