]> git.eshelyaron.com Git - emacs.git/commitdiff
Skip ruby-ts-imenu-index test if needed
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 28 Mar 2023 11:04:09 +0000 (13:04 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 28 Mar 2023 11:04:09 +0000 (13:04 +0200)
* test/lisp/progmodes/ruby-ts-mode-tests.el (ruby-ts-imenu-index):
Add check for treesitter.

test/lisp/progmodes/ruby-ts-mode-tests.el

index 11125dc5cd3a2467ad23d1dde0c1f0aa627977d3..55782f886f6b224bc2f48cefbc76186a87c1de82 100644 (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