aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2017-07-07 16:34:29 +0100
committerMike McQuaid2017-07-07 16:34:29 +0100
commit0b69ca85f763bb0db210384ba2c4a93049bb7b35 (patch)
tree361eee9a6aeb1ab4418ce7aad745efa7d126873a
parent0740855f81e0ba845c412d48ff2188f4301b9f75 (diff)
downloadbrew-0b69ca85f763bb0db210384ba2c4a93049bb7b35.tar.bz2
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.
-rw-r--r--Library/Homebrew/test/spec_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/test/spec_helper.rb b/Library/Homebrew/test/spec_helper.rb
index 75540caad..b1a028d9d 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)