Skip ruby-ts-imenu-index test if needed

* test/lisp/progmodes/ruby-ts-mode-tests.el (ruby-ts-imenu-index):
Add check for treesitter.
This commit is contained in:
Michael Albinus 2023-03-28 13:04:09 +02:00
parent 9133446db8
commit ba3ade58f3

View file

@ -282,6 +282,7 @@ The whitespace before and including \"|\" on each line is removed."
(expand-file-name (format "ruby-mode-resources/%s" ,file))))))
(ert-deftest ruby-ts-imenu-index ()
(skip-unless (treesit-ready-p 'ruby t))
(ruby-ts-with-temp-buffer
(ruby-ts-test-string
"module Foo