Skip to content

Commit

Permalink
feat(watcher): symbol queries for ruby rspec tests (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
wassimk authored Dec 22, 2023
1 parent 3b3fef1 commit 4e97566
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lua/neotest/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 4e97566

Please sign in to comment.