|
143 | 143 | (program |
144 | 144 | (call |
145 | 145 | method: (identifier) @_run @name |
146 | | - (#any-of? @_run "describe" "context" "test" "it" "its" "specify" "example" "feature" "scenario" "shared_examples" "fdescribe" "fcontext" "fit" "fexample" "focus" "xdescribe" "xcontext" "xit" "xexample" "xspecify" "skip" "pending" "it_behaves_like" "it_should_behave_like" "include_context" "include_examples") |
| 146 | + (#any-of? @_run |
| 147 | + "describe" "context" "test" "it" "its" "specify" "example" "feature" "scenario" |
| 148 | + "shared_examples" "fdescribe" "fcontext" "fit" "fexample" "focus" "xdescribe" "xcontext" "xit" |
| 149 | + "xexample" "xspecify" "skip" "pending" "it_behaves_like" "it_should_behave_like" |
| 150 | + "include_context" "include_examples") |
147 | 151 | arguments: (argument_list |
148 | 152 | . |
149 | 153 | [ |
|
163 | 167 | ; Nested test methods |
164 | 168 | (call |
165 | 169 | method: (identifier) @_ctx |
166 | | - (#any-of? @_ctx "describe" "context" "shared_examples" "fdescribe" "fcontext" "xdescribe" "xcontext") |
| 170 | + (#any-of? @_ctx |
| 171 | + "describe" "context" "shared_examples" "fdescribe" "fcontext" "xdescribe" "xcontext") |
167 | 172 | arguments: (argument_list |
168 | 173 | . |
169 | 174 | [ |
|
176 | 181 | (_ |
177 | 182 | (call |
178 | 183 | method: (identifier) @_run @name |
179 | | - (#any-of? @_run "describe" "context" "test" "it" "its" "specify" "example" "feature" "scenario" "shared_examples" "fdescribe" "fcontext" "fit" "fexample" "focus" "xdescribe" "xcontext" "xit" "xexample" "xspecify" "skip" "pending" "it_behaves_like" "it_should_behave_like" "include_context" "include_examples") |
| 184 | + (#any-of? @_run |
| 185 | + "describe" "context" "test" "it" "its" "specify" "example" "feature" "scenario" |
| 186 | + "shared_examples" "fdescribe" "fcontext" "fit" "fexample" "focus" "xdescribe" "xcontext" |
| 187 | + "xit" "xexample" "xspecify" "skip" "pending" "it_behaves_like" "it_should_behave_like" |
| 188 | + "include_context" "include_examples") |
180 | 189 | arguments: (argument_list |
181 | 190 | . |
182 | 191 | [ |
|
196 | 205 | ; RSpec one-liners |
197 | 206 | (call |
198 | 207 | method: (identifier) @_ctx |
199 | | - (#any-of? @_ctx "describe" "context" "shared_examples" "fdescribe" "fcontext" "xdescribe" "xcontext") |
| 208 | + (#any-of? @_ctx |
| 209 | + "describe" "context" "shared_examples" "fdescribe" "fcontext" "xdescribe" "xcontext") |
200 | 210 | arguments: (argument_list |
201 | 211 | . |
202 | 212 | [ |
|
209 | 219 | (_ |
210 | 220 | (call |
211 | 221 | method: (identifier) @_run @name |
212 | | - (#any-of? @_run "it" "its" "specify" "example" "fit" "fexample" "focus" "xit" "xexample" "xspecify" "skip" "pending") |
| 222 | + (#any-of? @_run |
| 223 | + "it" "its" "specify" "example" "fit" "fexample" "focus" "xit" "xexample" "xspecify" "skip" |
| 224 | + "pending") |
213 | 225 | block: (block |
214 | 226 | body: (block_body |
215 | 227 | (call |
|
0 commit comments