From be061e6715ecea46900456ed2849a8d8c1e9b4b7 Mon Sep 17 00:00:00 2001 From: Kazuya Takeshima Date: Thu, 18 Sep 2014 15:28:46 +0900 Subject: [PATCH] Add '--exclude-pattern' option --- src/_rspec | 1 + 1 file changed, 1 insertion(+) diff --git a/src/_rspec b/src/_rspec index e5be02c..394fe4b 100644 --- a/src/_rspec +++ b/src/_rspec @@ -37,6 +37,7 @@ _rspec() { '(-p --profile)'{-p,--profile}'[Enable profiling of examples and list the slowest examples (default: 10)]: :_guard "[[\:digit\:]]#" "COUNT"' \ '(-w --warnings)'{-w,--warnings}'[Enable ruby warnings]' \ '(-P --pattern)'{-P,--pattern}'[Load files matching pattern (default: "spec/**/*_spec.rb")]:PATTERN:' \ + --exclude-pattern'[Load files except those matching pattern]:PATTERN:' \ '(-e --example)'{-e,--example}'[Run examples whose full nested names include STRING (may be used more than once)]:STRING:' \ '(-t --tag)'{-t,--tag}'[Run examples with the specified tag, or exclude examples by adding ~ before the tag]: :->tag' \ --default-path'[Set the default path where RSpec looks for examples (can be a path to a file or a directory)]:PATH:_files' \