From ba3ade58f3b7083b40e4f995388d6246cc81ba82 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Tue, 28 Mar 2023 13:04:09 +0200 Subject: [PATCH] Skip ruby-ts-imenu-index test if needed * test/lisp/progmodes/ruby-ts-mode-tests.el (ruby-ts-imenu-index): Add check for treesitter. --- test/lisp/progmodes/ruby-ts-mode-tests.el | 1 + 1 file changed, 1 insertion(+) diff --git a/test/lisp/progmodes/ruby-ts-mode-tests.el b/test/lisp/progmodes/ruby-ts-mode-tests.el index 11125dc5cd3..55782f886f6 100644 --- a/test/lisp/progmodes/ruby-ts-mode-tests.el +++ b/test/lisp/progmodes/ruby-ts-mode-tests.el @@ -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 -- 2.39.2