-
-
Notifications
You must be signed in to change notification settings - Fork 631
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 RSpec's when_first_matching_example_defined if available #1496
Conversation
|
This RSpec method was added in v3.5.0 to with expensive setup logic. It results in similar behavior as just using `before(:example, ...)`, but it will only run once instead of for each example.
Hi Justin,
I have updated the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine.
Just want to check that somebody tested this with the versions where when_first_matching_example_defined
is not available.
And we need to resolve conflict in the changelog.
@Judahmeek or @ahangarha Please merge this after resolving the conflict. |
@justin808 I don't have write access to this repo so I cannot resolve the conflict and merge. |
@mcls @ahangarha can I get confirmation:
and then I'll merge. |
This RSpec method was added in v3.5.0 to with expensive setup logic. It results in similar behavior as just using
before(:example, ...)
, but it will only run once instead of for each example. So the behavior remains the same, but with the small optimization of not having to check for compiled assets on every example.Related documentation:
This change is