diff --git a/lua/neotest/config/init.lua b/lua/neotest/config/init.lua index a83efab3..ace80394 100644 --- a/lua/neotest/config/init.lua +++ b/lua/neotest/config/init.lua @@ -324,6 +324,22 @@ local default_config = { end return symbols end, + ruby = [[ + ;query + ;rspec - class name + (call + method: (identifier) @_ (#match? @_ "^(describe|context)") + arguments: (argument_list (constant) @symbol ) + ) + + ;rspec - namespaced class name + (call + method: (identifier) + arguments: (argument_list + (scope_resolution + name: (constant) @symbol)) + ) + ]], }, filter_path = nil, },