File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
Feature : `--pattern` option
2
2
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:
4
7
5
- "spec/** /*_spec.rb"
8
+ "**{,/*/**} /*_spec.rb"
6
9
7
10
Use the `--pattern` option to declare a different pattern.
8
11
@@ -25,7 +28,7 @@ Feature: `--pattern` option
25
28
end
26
29
"""
27
30
28
- Scenario : By default, RSpec runs files that match `"**/*_spec.rb"`
31
+ Scenario : By default, RSpec runs matching spec files
29
32
When I run `rspec`
30
33
Then the output should contain "2 examples, 0 failures"
31
34
You can’t perform that action at this time.
0 commit comments