Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Fix docs for pattern option so they are more accurate. #2177

Merged
merged 1 commit into from
Feb 17, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions features/command_line/pattern_option.feature
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
Feature: `--pattern` option

By default, RSpec loads files matching the pattern:
When you run RSpec without giving it specific file names, it determines which
files to load by applying a pattern to the provided directory arguments or
`spec` (if no directories are provided). By default, RSpec uses the following
pattern:

"spec/**/*_spec.rb"
"**{,/*/**}/*_spec.rb"

Use the `--pattern` option to declare a different pattern.

Expand All @@ -25,7 +28,7 @@ Feature: `--pattern` option
end
"""

Scenario: By default, RSpec runs files that match `"**/*_spec.rb"`
Scenario: By default, RSpec runs matching spec files
When I run `rspec`
Then the output should contain "2 examples, 0 failures"

Expand Down