From d3fc19a952a026822650945b55aabf6fd7af6b40 Mon Sep 17 00:00:00 2001 From: Vitaly Slobodin Date: Fri, 9 Jan 2026 21:20:09 +0100 Subject: [PATCH] fix(ruby): Use `string_content` capture for Ruby test name extraction --- languages/ruby/runnables.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/languages/ruby/runnables.scm b/languages/ruby/runnables.scm index 48c90c9..16d0ab5 100644 --- a/languages/ruby/runnables.scm +++ b/languages/ruby/runnables.scm @@ -38,10 +38,14 @@ ; Examples ((call method: (identifier) @run - (#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") + (#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") arguments: (argument_list . - (_) @name @RUBY_TEST_NAME)) @_ruby-test + (_ + (string_content) @name @RUBY_TEST_NAME))) @_ruby-test (#set! tag ruby-test)) ; Examples (one-liner syntax)