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

Use parent's run method when running specs. #15

Merged
merged 1 commit into from
Oct 26, 2017

Conversation

kamatama41
Copy link
Contributor

Originally I want to apply the suite hooks to run_group_of_tests. In order to do so, I think it's better to use the original run method than copying from the parent class because the implementation of the method can be different in each version of RSpec.

In running the original run with this gem, RSpec::Core::World#example_counts has to return divided number with process size. So added a monkey patch (core_ext/rspec_world.rb).

In running the original method with this gem,
RSpec::Core::World#example_counts has to return divided number with process size.
So added a monkey patch for that.
@grosser grosser merged commit 09e4698 into grosser:master Oct 26, 2017
@kamatama41 kamatama41 deleted the apply-suite-hooks branch October 28, 2017 11:52
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