Skip to content

Commit

Permalink
Only use cucumber if it's installed in the Gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kurko committed Sep 4, 2023
1 parent 2979362 commit 6c23780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/smartest.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 6c23780

Please sign in to comment.