From 0b69ca85f763bb0db210384ba2c4a93049bb7b35 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 7 Jul 2017 16:34:29 +0100 Subject: [PATCH] spec_helper: add focus support. When adding `, :focus` as a trailing argument to a `describe` or `it` this allows you to only run that single test. --- Library/Homebrew/test/spec_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/test/spec_helper.rb b/Library/Homebrew/test/spec_helper.rb index 75540caadd..b1a028d9d5 100644 --- a/Library/Homebrew/test/spec_helper.rb +++ b/Library/Homebrew/test/spec_helper.rb @@ -41,6 +41,8 @@ TEST_DIRECTORIES = [ RSpec.configure do |config| config.order = :random + config.filter_run_when_matching :focus + config.include(Test::Helper::Shutup) config.include(Test::Helper::Fixtures) config.include(Test::Helper::Formula)