Skip to content
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

beforeEach/afterEach only apply to current group #9

Closed
twobitlabs opened this issue Jun 25, 2012 · 2 comments
Closed

beforeEach/afterEach only apply to current group #9

twobitlabs opened this issue Jun 25, 2012 · 2 comments

Comments

@twobitlabs
Copy link

If I have nested describe groups, I'd expect that beforeEach and afterEach would apply to every spec at every level below the current group. But they only apply to the current group. Is there a reason you see not to run them at every nested level?

@petejkim
Copy link
Member

They should apply to nested specs too. Could you check again?

@twobitlabs
Copy link
Author

OK, I see they do get run before nested specs. I had mistakenly specified a nested spec using describe instead of specify or it.

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

No branches or pull requests

2 participants