Skip to content

Commit 69ac597

Browse files
committed
fix(ruby): Use string_content capture for Ruby test name extraction
1 parent ba25361 commit 69ac597

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

languages/ruby/runnables.scm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,14 @@
3838
; Examples
3939
((call
4040
method: (identifier) @run
41-
(#any-of? @run "describe" "context" "it" "its" "specify" "example" "feature" "scenario" "fdescribe" "fcontext" "fit" "fexample" "focus" "it_behaves_like" "it_should_behave_like" "include_context" "include_examples")
41+
(#any-of? @run
42+
"describe" "context" "it" "its" "specify" "example" "feature" "scenario" "fdescribe" "fcontext"
43+
"fit" "fexample" "focus" "it_behaves_like" "it_should_behave_like" "include_context"
44+
"include_examples")
4245
arguments: (argument_list
4346
.
44-
(_) @name @RUBY_TEST_NAME)) @_ruby-test
47+
(_
48+
(string_content) @name @RUBY_TEST_NAME))) @_ruby-test
4549
(#set! tag ruby-test))
4650

4751
; Examples (one-liner syntax)

0 commit comments

Comments
 (0)