From b50e74f342b40d3a569d3f09e10708a237ea9e6b Mon Sep 17 00:00:00 2001 From: Nicolas Berger Date: Fri, 31 Jul 2015 14:53:10 -0300 Subject: [PATCH] Run test under cursor with fixtures applied Use `test-vars` instead of `test-var` so the test runs with the fixtures applied. That's the expected behavior when running a test. It's also what's being done when multiple tests are matched. --- plugin/fireplace.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fireplace.vim b/plugin/fireplace.vim index c2b2d1b..3b44f10 100644 --- a/plugin/fireplace.vim +++ b/plugin/fireplace.vim @@ -1618,7 +1618,7 @@ function! s:RunTests(bang, count, ...) abort let vars = filter(copy(reqs), 'v:val =~# "/"') let nses = filter(copy(reqs), 'v:val !~# "/"') if len(vars) == 1 - call add(expr, '(clojure.test/test-var #' . vars[0] . ')') + call add(expr, '(clojure.test/test-vars [#' . vars[0] . '])') elseif !empty(vars) call add(expr, join(['(clojure.test/test-vars'] + map(vars, '"#".v:val'), ' ').')') endif