Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Clarify behavior of --example command line option

- Closes #378.
- Also see #299.
  • Loading branch information...
commit 54f90b3cc04378a3a32d7c9b250074bc8aa14886 1 parent de6531b
@dchelimsky dchelimsky authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/rspec/core/option_parser.rb
View
3  lib/rspec/core/option_parser.rb
@@ -40,8 +40,7 @@ def parser(options)
options[:debug] = true
end
- parser.on('-e', '--example PATTERN', "Run examples whose full descriptions match this pattern",
- "(PATTERN is compiled into a Ruby regular expression)") do |o|
+ parser.on('-e', '--example STRING', "Run examples whose full nested names include STRING") do |o|
options[:full_description] = Regexp.compile(Regexp.escape(o))
end
Please sign in to comment.
Something went wrong with that request. Please try again.