Open Davidslv opened 1 year ago
This does the trick for me:
require('nvim-test.runners.rspec'):setup({
command = "bundle",
args = { "exec", "rspec" },
})
The snippet above from @rzane does not work for me, but this did
require('nvim-test.runners.rspec'):setup {
command = "bundle",
}
(figured it out from https://github.com/klen/nvim-test/blob/main/lua/nvim-test/runners/rspec.lua#L28)
Hello,
I'm having a bit of a problem when trying to use rspec runner.
I've noticed that your default setup is to just execute
rspec
.Although this causes some problems when the project gem versions are not the same, for instance:
So I decided to look at replacing the command configuration to
command = { "bundle exec rspec"}
But this caused another error when attempting to use:TestFile
My setup
Would it be possible to have
bundle exec rspec
whenever there's aGemfile
present?