Add --only-failures to rspec completions

See title. This would be available for rspec 3.x users.
This commit is contained in:
Dorian Karter 2017-12-05 19:51:44 -06:00 committed by GitHub
parent 372f9b47e9
commit a9ca8f5fd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ _rspec() {
'*'{-O,--options}'[Specify the path to a custom options file]:PATH:_files' \ '*'{-O,--options}'[Specify the path to a custom options file]:PATH:_files' \
--order'[Run examples by the specified order type]: :->order' \ --order'[Run examples by the specified order type]: :->order' \
--seed'[Equivalent of --order rand:SEED]: :_guard "[[\:digit\:]]#" "SEED"' \ --seed'[Equivalent of --order rand:SEED]: :_guard "[[\:digit\:]]#" "SEED"' \
--only-failures'[Filter to just the examples that failed the last time they ran]' \
--fail-fast'[Abort the run on first failure]' \ --fail-fast'[Abort the run on first failure]' \
--no-fail-fast'[Do not abort the run on first failure]' \ --no-fail-fast'[Do not abort the run on first failure]' \
--failure-exit-code'[Override the exit code used when there are failing specs]: :_guard "[[\:digit\:]]#" "CODE"' \ --failure-exit-code'[Override the exit code used when there are failing specs]: :_guard "[[\:digit\:]]#" "CODE"' \