diff options
| author | Mike McQuaid | 2017-07-07 16:34:29 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-07-07 16:34:29 +0100 |
| commit | 0b69ca85f763bb0db210384ba2c4a93049bb7b35 (patch) | |
| tree | 361eee9a6aeb1ab4418ce7aad745efa7d126873a /Library/Homebrew | |
| parent | 0740855f81e0ba845c412d48ff2188f4301b9f75 (diff) | |
| download | brew-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.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/test/spec_helper.rb | 2 |
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) |
