From 6c23780127b03f5ebca9f8bd6ef274fe9bf003d7 Mon Sep 17 00:00:00 2001 From: Alex Oliveira Date: Mon, 4 Sep 2023 23:46:00 +0200 Subject: [PATCH] Only use cucumber if it's installed in the Gemfile --- plugin/smartest.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/smartest.vim b/plugin/smartest.vim index ce3b900..511aa8a 100644 --- a/plugin/smartest.vim +++ b/plugin/smartest.vim @@ -186,7 +186,7 @@ function! RunTests(filename) endif " CUCUMBER - elseif match(a:filename, '\(.feature\)') >= 0 + elseif match(a:filename, '\(.feature\)') >= 0 && filereadable("Gemfile") && match(readfile("Gemfile"), "cucumber") >= 0 let smartest_test_context = "cucumber" if filereadable("Gemfile")