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

before/after(:all) hook filtering fix #161

Closed
wants to merge 1 commit into from

Conversation

myronmarston
Copy link
Member

This commit fixes a bug with before/after(:all) hooks being run for example groups that have been excluded from running the an inclusion/exclusion filter.

…ple groups.

Previously, before/after(:all) hooks in an example group with a nested example group would always be run, even if none of the specs in the example group were run due to inclusion/exclusion filtering.  We should only run the before/after(:all) hooks if there are any corresponding examples to run.
@dchelimsky
Copy link
Contributor

Merged: 5c655e1

timcharper pushed a commit to timcharper/rspec-core that referenced this pull request Aug 19, 2011
…ple groups.

Previously, before/after(:all) hooks in an example group with a nested example group would always be run, even if none of the specs in the example group were run due to inclusion/exclusion filtering.  We should only run the before/after(:all) hooks if there are any corresponding examples to run.

- Closes rspec#161.
This pull request was closed.
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.

None yet

2 participants