From a9ca8f5fd964f21474b45839ced0fa6384e14423 Mon Sep 17 00:00:00 2001 From: Dorian Karter Date: Tue, 5 Dec 2017 19:51:44 -0600 Subject: [PATCH] Add --only-failures to rspec completions See title. This would be available for rspec 3.x users. --- src/_rspec | 1 + 1 file changed, 1 insertion(+) diff --git a/src/_rspec b/src/_rspec index 2ffb196..ba9cc45 100644 --- a/src/_rspec +++ b/src/_rspec @@ -48,6 +48,7 @@ _rspec() { '*'{-O,--options}'[Specify the path to a custom options file]:PATH:_files' \ --order'[Run examples by the specified order type]: :->order' \ --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]' \ --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"' \