From 994b63be3400900fd67977792667108b79310a9a Mon Sep 17 00:00:00 2001 From: David Besserman Date: Tue, 13 Aug 2019 11:02:46 +0200 Subject: [PATCH] use relative paths instead of absolute paths When running spec on a specific file, the absolute path is sent to the runner. This prevents us from running specs within a docker container. This commit introduces relative paths instead. --- plugin/rspec.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/rspec.vim b/plugin/rspec.vim index 34f7372..cb219d4 100644 --- a/plugin/rspec.vim +++ b/plugin/rspec.vim @@ -73,7 +73,7 @@ function! s:DefaultTerminalCommand() endfunction function! s:CurrentFilePath() - return @% + return expand("%") endfunction function! s:GuiCommand(command)