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

Commit 44afa9b

Browse files
committed
Merge pull request #2177 from rspec/fix-pattern-docs
Fix docs for pattern option so they are more accurate.
2 parents ceecf84 + f3deaf8 commit 44afa9b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

features/command_line/pattern_option.feature

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
Feature: `--pattern` option
22

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

5-
"spec/**/*_spec.rb"
8+
"**{,/*/**}/*_spec.rb"
69

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

@@ -25,7 +28,7 @@ Feature: `--pattern` option
2528
end
2629
"""
2730

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

0 commit comments

Comments
 (0)