This repository was archived by the owner on Nov 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Lint/LiteralInInterpolation:
25
25
26
26
# This should go down over time.
27
27
MethodLength :
28
- Max : 155
28
+ Max : 40
29
29
30
30
# Exclude the default spec_helper to make it easier to uncomment out
31
31
# default settings (for both users and the Cucumber suite).
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ def parse(args)
21
21
options
22
22
end
23
23
24
+ # rubocop:disable MethodLength
24
25
def parser ( options )
25
26
OptionParser . new do |parser |
26
27
parser . banner = "Usage: rspec [options] [files or directories]\n \n "
@@ -143,11 +144,15 @@ def parser(options)
143
144
144
145
**** Filtering/tags ****
145
146
146
- In addition to the following options for selecting specific files, groups,
147
- or examples, you can select a single example by appending the line number to
147
+ In addition to the following options for selecting specific files, groups, or
148
+ examples, you can select individual examples by appending the line number(s) to
148
149
the filename:
149
150
150
- rspec path/to/a_spec.rb:37
151
+ rspec path/to/a_spec.rb:37:87
152
+
153
+ You can also pass example ids enclosed in square brackets:
154
+
155
+ rspec path/to/a_spec.rb[1:5,1:6] # run the 5th and 6th examples/groups defined in the 1st group
151
156
152
157
FILTERING
153
158
@@ -224,5 +229,6 @@ def parser(options)
224
229
225
230
end
226
231
end
232
+ # rubocop:enable MethodLength
227
233
end
228
234
end
You can’t perform that action at this time.
0 commit comments