Add '--exclude-pattern' option

This commit is contained in:
Kazuya Takeshima 2014-09-18 15:28:46 +09:00
parent bc87980ffd
commit be061e6715
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ _rspec() {
'(-p --profile)'{-p,--profile}'[Enable profiling of examples and list the slowest examples (default: 10)]: :_guard "[[\:digit\:]]#" "COUNT"' \ '(-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]' \ '(-w --warnings)'{-w,--warnings}'[Enable ruby warnings]' \
'(-P --pattern)'{-P,--pattern}'[Load files matching pattern (default: "spec/**/*_spec.rb")]:PATTERN:' \ '(-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:' \ '(-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' \ '(-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' \ --default-path'[Set the default path where RSpec looks for examples (can be a path to a file or a directory)]:PATH:_files' \