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

spec_helper: add focus support. #2871

Merged
merged 1 commit into from
Jul 8, 2017

Conversation

MikeMcQuaid
Copy link
Member

When adding , :focus as a trailing argument to a describe or it this allows you to only run that single test.

@@ -41,6 +41,9 @@
RSpec.configure do |config|
config.order = :random

config.filter_run_when_matching :focus
config.run_all_when_everything_filtered = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This second line isn't needed, and can lead to some confusing behaviour, if I'm reading http://rspec.info/blog/2016/07/rspec-3-5-has-been-released/ right

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alyssais Ta, you're right.

When adding `, :focus` as a trailing argument to a `describe` or `it`
this allows you to only run that single test.
@MikeMcQuaid MikeMcQuaid merged commit ded1967 into Homebrew:master Jul 8, 2017
@MikeMcQuaid MikeMcQuaid deleted the rspec-focus branch July 8, 2017 06:44
@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants